]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
scripts/makefile-getvar: quote MAKEFILE variable
authorThomas Perrot <thomas.perrot@bootlin.com>
Mon, 11 May 2026 10:13:27 +0000 (12:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 May 2026 11:20:04 +0000 (12:20 +0100)
$MAKEFILE was unquoted in the -f test and the error echo, causing
word-splitting on paths that contain spaces.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/makefile-getvar

index e8a983276676b8d8541e99a84ca92be27d4a1719..238d9567adcef8ba4e7f0f591db0654822c24db8 100755 (executable)
@@ -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