summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 82699119c..9d27491ad 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -411,8 +411,10 @@ unpack() {
strip_duplicate_slashes () {
if [ -n "${1}" ]; then
- local removed="${1/\/\///}"
- [ "${removed}" != "${removed/\/\///}" ] && removed=$(strip_duplicate_slashes "${removed}")
+ local removed=${1}
+ while [ "${removed}" != "${removed/\/\///}" ] ; do
+ removed="${removed/\/\///}"
+ done
echo ${removed}
fi
}