fix bug when we don't pass parameters
authorColin Leroy <colin@colino.net>
Wed, 28 Jul 2004 07:56:28 +0000 (07:56 +0000)
committerColin Leroy <colin@colino.net>
Wed, 28 Jul 2004 07:56:28 +0000 (07:56 +0000)
commitHelper

index a68eb98..5bc7b38 100644 (file)
@@ -77,6 +77,11 @@ if [ "$ans" == "y" ]; then
                EDITOR=vi
        fi;
        $EDITOR $chlog configure.ac
-       echo running cvs commit $@ PATCHSETS $chlog configure.ac
-       cvs commit $@ PATCHSETS $chlog configure.ac
+       if [ "$@" != "" ]; then
+               echo running cvs commit $@ PATCHSETS $chlog configure.ac
+               cvs commit $@ PATCHSETS $chlog configure.ac
+       else
+               echo running cvs commit
+               cvs commit
+       fi;
 fi