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]> Signed-off-by: Mathieu Dubois-Briand <[email protected]> Signed-off-by: Richard Purdie <[email protected]> (cherry picked from commit c98243b8e2a5f1e538024131ca94991c5befc59f) Signed-off-by: Yoann Congal <[email protected]> --- scripts/makefile-getvar | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/makefile-getvar b/scripts/makefile-getvar index e8a98327667..238d9567adc 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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237369): https://lists.openembedded.org/g/openembedded-core/message/237369 Mute This Topic: https://lists.openembedded.org/mt/119400580/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
