core: double quote variables in script autogen.sh

This commit is contained in:
Sébastien Helleu 2019-11-27 20:17:48 +01:00
parent fb8f0590b0
commit 45509c3560

View File

@ -24,8 +24,8 @@
### common stuff ### common stuff
### ###
DIR=$(cd $(dirname "$0"); pwd) DIR=$(cd "$(dirname "$0")" || exit 1; pwd)
cd $DIR cd "$DIR" || exit 1
AUTOGEN_LOG=autogen.log AUTOGEN_LOG=autogen.log
@ -41,9 +41,8 @@ err ()
run () run ()
{ {
echo -n "Running \"$@\"..." printf "Running \"%s\"..." "$@"
eval $@ >$AUTOGEN_LOG 2>&1 if eval "$@" >$AUTOGEN_LOG 2>&1 ; then
if [ $? = 0 ] ; then
echo " OK" echo " OK"
else else
echo " FAILED" echo " FAILED"