From: Zac Medico Date: Wed, 19 Mar 2008 11:34:10 +0000 (-0000) Subject: Strip trailing slashes from directory paths if necessary. X-Git-Tag: v2.2_pre5~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5333212e04ba53d8ad1281938fd09d5d24ec0746;p=portage.git Strip trailing slashes from directory paths if necessary. svn path=/main/trunk/; revision=9487 --- 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