fix bug when we don't pass parameters
[claws.git] / commitHelper
index a68eb98ed6626dac5956500528d275684d61d9b3..5bc7b387db6a15efdc7e74721c792f6de09869e5 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