From: Thomas Perrot Date: Mon, 11 May 2026 10:13:27 +0000 (+0200) Subject: scripts/makefile-getvar: quote MAKEFILE variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c98243b8e2a5f1e538024131ca94991c5befc59f;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git scripts/makefile-getvar: quote MAKEFILE variable $MAKEFILE was unquoted in the -f test and the error echo, causing word-splitting on paths that contain spaces. Signed-off-by: Thomas Perrot Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/scripts/makefile-getvar b/scripts/makefile-getvar index e8a9832766..238d9567ad 100755 --- a/scripts/makefile-getvar +++ b/scripts/makefile-getvar @@ -20,8 +20,8 @@ fi MAKEFILE=$1 shift -if [ ! -f $MAKEFILE ]; then - echo $MAKEFILE is not a file +if [ ! -f "$MAKEFILE" ]; then + echo "$MAKEFILE is not a file" exit 1 fi