From: Zac Medico Date: Fri, 28 Mar 2008 12:31:37 +0000 (-0000) Subject: Strip trailing slashes from directory paths if necessary. (trunk r9487) X-Git-Tag: v2.1.5~325 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9d5fa39a39dc8ed6c0b0f6a48247eda9f7092309;p=portage.git Strip trailing slashes from directory paths if necessary. (trunk r9487) svn path=/main/branches/2.1.2/; revision=9565 --- 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