From 9418c932da174d50f4420945290a3d05ba1a4277 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 1 Nov 2005 01:33:02 +0000 Subject: if STRIP begins with a -, make sure type doesnt error out svn path=/main/branches/2.0/; revision=2223 --- bin/prepstrip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/prepstrip') 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 -- cgit v1.2.3-1-g7c22