aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-03-24 15:08:00 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2018-03-24 15:12:51 +0000
commit394fb518fbc0789402b853d7ec44eaf283ffae51 (patch)
treec8fb28996293317d57baf1c74153062be5d5a83c /wrappers
parentcross-emerge: tweak EPREFIX handling to be POSIX sh, bug #650100 (diff)
downloadcrossdev-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-xwrappers/cross-emerge2
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