From f3322eaeabec6e30360f2feceef50048e7e89471 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Sat, 7 Aug 2004 16:53:04 +0000 Subject: [PATCH] fix bug in if with more than one arg --- commitHelper | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commitHelper b/commitHelper index b9587ccd0..3c552c8f4 100644 --- a/commitHelper +++ b/commitHelper @@ -8,6 +8,7 @@ if [ "$1" == "--syncgtk2" ]; then cat configure.ac | sed "s/^EXTRA_GTK2_VERSION=.*/EXTRA_GTK2_VERSION=.0/" > configure.ac.new \ && mv configure.ac.new configure.ac ; fi; +args=`echo $@` head -16 configure.ac | grep VERSION= > /tmp/commitTool.tmp source /tmp/commitTool.tmp @@ -111,7 +112,7 @@ if [ "$ans" == "y" ]; then echo "$patchset" >> PATCHSETS - if [ "$@" != "" ]; then + if [ "$args" != "" ]; then echo commiting $@ PATCHSETS $chlog configure.ac cvs commit -m "`cat /tmp/logentry`" $@ PATCHSETS $chlog configure.ac else -- 2.25.1