summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <kees@outflux.net>2006-12-03 04:11:08 +0000
committerkeescook <keescook@users.sourceforge.net>2006-12-03 04:11:08 +0000
commit0a65be40fa559fea4ef1c53472fec4909a89f4b0 (patch)
tree961b5d2cbf805693759f22bb68b7785b65bcce13
parentDrop debian tree from tarball, as recommended by debian packaging. (diff)
downloadinkscape-0a65be40fa559fea4ef1c53472fec4909a89f4b0.tar.gz
inkscape-0a65be40fa559fea4ef1c53472fec4909a89f4b0.zip
Protect arguments with quotes
(bzr r2069)
-rwxr-xr-xautogen.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 16ac28c9b..1afc947ff 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -28,10 +28,10 @@ cd "$srcdir"
check_version ()
{
-MAJOR1=`echo $1 | cut -d"." -f1`;
-MINOR1=`echo $1 | cut -s -d"." -f2`;
-MAJOR2=`echo $2 | cut -d"." -f1`;
-MINOR2=`echo $2 | cut -d"." -f2;`
+MAJOR1=`echo "$1" | cut -d"." -f1`;
+MINOR1=`echo "$1" | cut -s -d"." -f2`;
+MAJOR2=`echo "$2" | cut -d"." -f1`;
+MINOR2=`echo "$2" | cut -d"." -f2;`
test -z "$MINOR1" && MINOR1="0";
if (("$MAJOR1" > "$MAJOR2"))||(((("$MAJOR1" == "$MAJOR2")) && (("$MINOR1" \>= "$MINOR2")))); then