commit:     dd8c0e06ab97797860023bc88b6f66bd19a2a3a5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 28 11:44:06 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Mar 28 15:42:01 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=dd8c0e06

estrip: Fix handling slashes in STRIP_MASK

Fixes: 244a62a4f275 ("Fix uses of D/ED to account for no trailing slash")

 bin/estrip | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/estrip b/bin/estrip
index 41686aa39..030d9e8bf 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -395,7 +395,7 @@ do
                set -o noglob
                strip_this=true
                for m in $(eval echo ${STRIP_MASK}) ; do
-                       [[ /${x#${ED%/}} == ${m} ]] && strip_this=false && break
+                       [[ ${x#${ED%/}} == ${m} ]] && strip_this=false && break
                done
                set +o noglob
        fi

Reply via email to