summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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