]> diplodocus.org Git - xorg-xinput/commitdiff
autogen.sh: use quoted string variables
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Mar 2015 12:00:52 +0000 (12:00 +0000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 26 Jan 2017 00:38:29 +0000 (10:38 +1000)
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
autogen.sh

index fd9c59a..0006de8 100755 (executable)
@@ -1,14 +1,14 @@
 #! /bin/sh
 
 #! /bin/sh
 
-srcdir=`dirname $0`
+srcdir=`dirname "$0"`
 test -z "$srcdir" && srcdir=.
 
 ORIGDIR=`pwd`
 test -z "$srcdir" && srcdir=.
 
 ORIGDIR=`pwd`
-cd $srcdir
+cd "$srcdir"
 
 autoreconf -v --install || exit 1
 
 autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
+cd "$ORIGDIR" || exit $?
 
 if test -z "$NOCONFIGURE"; then
 
 if test -z "$NOCONFIGURE"; then
-    exec $srcdir/configure "$@"
+    exec "$srcdir"/configure "$@"
 fi
 fi