summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/doins2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/doins b/bin/doins
index e9404a77c..a4f5ee22f 100755
--- a/bin/doins
+++ b/bin/doins
@@ -53,7 +53,7 @@ for x in "$@" ; do
while [ "$x" != "${x%/}" ] ; do
x=${x%/}
done
- if [ $x = "${x%/*}" ] ; then
+ if [ "$x" = "${x%/*}" ] ; then
pushd "$PWD" >/dev/null
else
pushd "${x%/*}" >/dev/null