From 5333212e04ba53d8ad1281938fd09d5d24ec0746 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 19 Mar 2008 11:34:10 +0000 Subject: [PATCH] Strip trailing slashes from directory paths if necessary. svn path=/main/trunk/; revision=9487 --- bin/doins | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.26.2