summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-04-15 19:16:19 +0000
committerSimon Stelling <blubb@gentoo.org>2006-04-15 19:16:19 +0000
commitf2f546e5e18ef1684def5c2f4a6528d665ff8dd0 (patch)
treeaedd0b5f62a22ce7954fecbf4b7d6a09b5adb526
parentd68ec90157a963f3483c09915b1844ee43b4ac77 (diff)
downloadportage-f2f546e5e18ef1684def5c2f4a6528d665ff8dd0.tar.gz
portage-f2f546e5e18ef1684def5c2f4a6528d665ff8dd0.tar.bz2
portage-f2f546e5e18ef1684def5c2f4a6528d665ff8dd0.zip
remove all unneeded slashes, not only // or ///
svn path=/main/trunk/; revision=3156
-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
}