From 9d5fa39a39dc8ed6c0b0f6a48247eda9f7092309 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 28 Mar 2008 12:31:37 +0000 Subject: [PATCH] Strip trailing slashes from directory paths if necessary. (trunk r9487) svn path=/main/branches/2.1.2/; revision=9565 --- 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