Fix quoting. (trunk r9489)
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 12:36:43 +0000 (12:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 12:36:43 +0000 (12:36 -0000)
svn path=/main/branches/2.1.2/; revision=9567

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