summaryrefslogtreecommitdiffstats
path: root/bin/doins
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/doins
parentdb70c869f583c8943941cb0c514e37c99f91a07b (diff)
downloadportage-5333212e04ba53d8ad1281938fd09d5d24ec0746.tar.gz
portage-5333212e04ba53d8ad1281938fd09d5d24ec0746.tar.bz2
portage-5333212e04ba53d8ad1281938fd09d5d24ec0746.zip
Strip trailing slashes from directory paths if necessary.
svn path=/main/trunk/; revision=9487
Diffstat (limited to 'bin/doins')
-rwxr-xr-xbin/doins3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/doins b/bin/doins
index ed0212048..e9404a77c 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