diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-09 12:00:52 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-07-24 14:01:36 -0700 |
commit | 63c57d4f7b26581375df0d9888d41b1028c23123 (patch) | |
tree | 7c9a789ac7716b7cad858425f4adb0bc64e6f009 | |
parent | 778404a17ccd5b40240f9612030985a55a560ffd (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,10 +1,10 @@ #! /bin/sh -srcdir=`dirname $0` +srcdir=`dirname "$0"` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` -cd $srcdir +cd "$srcdir" # If this is a git checkout, verify that the submodules are initialized, # otherwise autotools will just fail with an unhelpful error message. @@ -22,8 +22,8 @@ then fi autoreconf -v --install || exit 1 -cd $ORIGDIR || exit $? +cd "$ORIGDIR" || exit $? if test -z "$NOCONFIGURE"; then - exec $srcdir/configure "$@" + exec "$srcdir"/configure "$@" fi |