diff options
-rwxr-xr-x | bin/ebuild.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh index f54110273..3babf1d46 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -409,11 +409,11 @@ unpack() { chmod -Rf a+rX,u+w,g-w,o-w . } -strip_duplicate_slashes () { - if [ -n "${1}" ]; then - local removed=${1} - while [ "${removed}" != "${removed/\/\///}" ] ; do - removed="${removed/\/\///}" +strip_duplicate_slashes() { + if [[ -n $1 ]] ; then + local removed=$1 + while [[ ${removed} == *//* ]] ; do + removed=${removed//\/\///} done echo ${removed} fi |