From: Thomas Perrot <[email protected]>

$MAKEFILE was unquoted in the -f test and the error echo, causing
word-splitting on paths that contain spaces.

Signed-off-by: Thomas Perrot <[email protected]>
---
 scripts/makefile-getvar | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/makefile-getvar b/scripts/makefile-getvar
index e8a983276676..238d9567adce 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
 
-- 
2.54.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#236801): 
https://lists.openembedded.org/g/openembedded-core/message/236801
Mute This Topic: https://lists.openembedded.org/mt/119253641/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to