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 11:59:25 +1000 |
commit | 286a9f9b2e66094dd17104f14ad557bf1d938b3f (patch) | |
tree | 202fa382a15c450e5767e8ab4667e5e88b69c408 | |
parent | 3d2ceb7b0df67c7657e77353ff50d4c22955697e (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,14 +1,14 @@ #! /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 $? if test -z "$NOCONFIGURE"; then - exec $srcdir/configure "$@" + exec "$srcdir"/configure "$@" fi |