]> git.neil.brown.name Git - wiggle.git/commitdiff
Fix a couple of little bugs that crept in to p
authorNeil Brown <neilb@suse.de>
Tue, 13 Jun 2006 12:59:29 +0000 (22:59 +1000)
committerNeil Brown <neilb@suse.de>
Tue, 13 Jun 2006 12:59:29 +0000 (22:59 +1000)
Signed-off-by: Neil Brown <neilb@suse.de>
p

diff --git a/p b/p
index fe71a72db6fee10fdd7b201cd2ee70b9e5e23912..d3a8c5ffeb0388d364caa0aba7b387a80a4dacae 100755 (executable)
--- a/p
+++ b/p
@@ -800,7 +800,7 @@ case $cmd in
        > .patches/files
        ;;
   openall )
-        while p open last && p discard ; do : ; done
+        while $0 open last && $0 discard ; do : ; done
        ;;
   recommit )
        make_diff
@@ -906,7 +906,7 @@ case $cmd in
   export )
        # there must be only one patch.  We
        # git commit, p commit, p rebase
-       if [ -n `ls .patches/applied` ]
+       if [ -n "`ls .patches/applied`" ]
        then
            echo 'Cannot export when there are applied patches'
            exit 1;