if STRIP begins with a -, make sure type doesnt error out
authorMike Frysinger <vapier@gentoo.org>
Tue, 1 Nov 2005 01:33:02 +0000 (01:33 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 1 Nov 2005 01:33:02 +0000 (01:33 -0000)
svn path=/main/branches/2.0/; revision=2223

bin/prepstrip

index ed3e6f6478f7013653c756afd892c5d1235c7eb6..eadc5b2452060ac7890c5330be8239977054c95a 100755 (executable)
@@ -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