diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-09 12:00:52 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-03-09 18:11:57 -0800 |
commit | eec4604d764a1ed37815012ca1f2c9fba44cdebd (patch) | |
tree | 9b70517d30ab4de0d5d505bb24bbece459ca9542 | |
parent | 0fd9c024c1a3d837b460d8b7a978f057867c74cf (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>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-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 >/dev/null 2>&1 || git config --local format.subjectPrefix "PATCH app/xmore" if test -z "$NOCONFIGURE"; then - exec $srcdir/configure "$@" + exec "$srcdir"/configure "$@" fi |