diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-03-24 15:08:00 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-03-24 15:12:51 +0000 |
commit | 394fb518fbc0789402b853d7ec44eaf283ffae51 (patch) | |
tree | c8fb28996293317d57baf1c74153062be5d5a83c /wrappers | |
parent | cross-emerge: tweak EPREFIX handling to be POSIX sh, bug #650100 (diff) | |
download | crossdev-394fb518fbc0789402b853d7ec44eaf283ffae51.tar.gz crossdev-394fb518fbc0789402b853d7ec44eaf283ffae51.tar.bz2 crossdev-394fb518fbc0789402b853d7ec44eaf283ffae51.zip |
cross-emerge: fix empty EPREFIX handling, bug #650100
commit 21a0f5a3d83084436e6f6b66114cc5c593528866
("cross-emerge: tweak EPREFIX handling to be POSIX sh, bug #650100")
introduced a bug:
$ foo-emerge
foo-emerge: line 13: [: =: unary operator expected
Tweak it by quoting 'test' argument.
Reported-by: Marty E. Plummer
Bug: https://bugs.gentoo.org/650100
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'wrappers')
-rwxr-xr-x | wrappers/cross-emerge | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wrappers/cross-emerge b/wrappers/cross-emerge index d775b90..7b63756 100755 --- a/wrappers/cross-emerge +++ b/wrappers/cross-emerge @@ -10,7 +10,7 @@ fi export CHOST EPREFIX="@GENTOO_PORTAGE_EPREFIX@" -if [ ${EPREFIX} = "@"GENTOO_PORTAGE_EPREFIX"@" ] ; then +if [ "${EPREFIX}" = "@"GENTOO_PORTAGE_EPREFIX"@" ] ; then EPREFIX="" fi |