summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-01 01:33:02 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-01 01:33:02 +0000
commit9418c932da174d50f4420945290a3d05ba1a4277 (patch)
treea4de9ea9c2ff348eaa4ba17969071b777e42accd
parent1823e1e4abc8567c892871483af0fce3f2a7ac53 (diff)
downloadportage-9418c932da174d50f4420945290a3d05ba1a4277.tar.gz
portage-9418c932da174d50f4420945290a3d05ba1a4277.tar.bz2
portage-9418c932da174d50f4420945290a3d05ba1a4277.zip
if STRIP begins with a -, make sure type doesnt error out
svn path=/main/branches/2.0/; revision=2223
-rwxr-xr-xbin/prepstrip4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index ed3e6f647..eadc5b245 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -8,8 +8,8 @@ if [ "${FEATURES//*nostrip*/true}" == "true" ] || [ "${RESTRICT//*nostrip*/true}
STRIP="/bin/false"
PORTAGE_STRIP_FLAGS=""
else
- STRIP="${STRIP:-${CHOST}-strip}"
- type -p ${STRIP} > /dev/null || STRIP=strip
+ STRIP=${STRIP:-${CHOST}-strip}
+ type -p -- ${STRIP} > /dev/null || STRIP=strip
PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS:---strip-unneeded}
fi