Fix quoting.
authorZac Medico <zmedico@gentoo.org>
Wed, 19 Mar 2008 19:49:00 +0000 (19:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 19 Mar 2008 19:49:00 +0000 (19:49 -0000)
svn path=/main/trunk/; revision=9489

bin/doins

index e9404a77c382b50afe83a40164a97f2fef796e9e..a4f5ee22f8eba85eb50d6d9ec82cf671619ce41d 100755 (executable)
--- 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