diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-09 12:00:52 +0000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-01-26 12:05:22 +1000 |
commit | f8ff8d5f7442b3cbac57d5fe343aabd8f54a030f (patch) | |
tree | 7f8937ab53b0a9e8adc984817654a2c70e2f7fc3 | |
parent | 75b9a15b51a062941a549fef0dedaee9daef4867 (diff) |
autogen.sh: use quoted string variables
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>
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,17 +1,17 @@ #! /bin/sh -srcdir=`dirname $0` +srcdir=`dirname "$0"` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` -cd $srcdir +cd "$srcdir" autoreconf -v --install || exit 1 -cd $ORIGDIR || exit $? +cd "$ORIGDIR" || exit $? git config --local --get format.subjectPrefix || git config --local format.subjectPrefix "PATCH libXfont" if test -z "$NOCONFIGURE"; then - exec $srcdir/configure "$@" + exec "$srcdir"/configure "$@" fi |