diff options
author | Simon Stelling <blubb@gentoo.org> | 2006-04-15 19:16:19 +0000 |
---|---|---|
committer | Simon Stelling <blubb@gentoo.org> | 2006-04-15 19:16:19 +0000 |
commit | f2f546e5e18ef1684def5c2f4a6528d665ff8dd0 (patch) | |
tree | aedd0b5f62a22ce7954fecbf4b7d6a09b5adb526 | |
parent | d68ec90157a963f3483c09915b1844ee43b4ac77 (diff) | |
download | portage-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-x | bin/ebuild.sh | 6 |
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 } |