summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-19 11:34:10 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-19 11:34:10 +0000
commit5333212e04ba53d8ad1281938fd09d5d24ec0746 (patch)
tree134cdd9c95bdcb49e443b3e5972fc8dba8dccef7 /bin
parentBug #210690 - Fix --help output to show the leading slash on the path to (diff)
downloadportage-multirepo-5333212e04ba53d8ad1281938fd09d5d24ec0746.tar.gz
portage-multirepo-5333212e04ba53d8ad1281938fd09d5d24ec0746.tar.bz2
portage-multirepo-5333212e04ba53d8ad1281938fd09d5d24ec0746.zip
Strip trailing slashes from directory paths if necessary.
svn path=/main/trunk/; revision=9487
Diffstat (limited to 'bin')
-rwxr-xr-xbin/doins3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/doins b/bin/doins
index ed021204..e9404a77 100755
--- a/bin/doins
+++ b/bin/doins
@@ -50,6 +50,9 @@ for x in "$@" ; do
continue
fi
+ while [ "$x" != "${x%/}" ] ; do
+ x=${x%/}
+ done
if [ $x = "${x%/*}" ] ; then
pushd "$PWD" >/dev/null
else