From e543b69fb07111dc4904cd14d7e0bdbd466fdb77 Mon Sep 17 00:00:00 2001 From: nitepone Date: Wed, 11 May 2022 21:08:55 -0400 Subject: [PATCH] Fix shellcheck errors in conftest --- kernel-open/conftest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel-open/conftest.sh b/kernel-open/conftest.sh index 27ecf500b..b96dc24b8 100755 --- a/kernel-open/conftest.sh +++ b/kernel-open/conftest.sh @@ -73,8 +73,8 @@ translate_and_preprocess_header_files() { # strings, without special handling of the beginning or the end of the line. TEST_CFLAGS=`echo "-E -M $CFLAGS " | sed -e 's/\( -M[DG]\)* / /g'` - for file in $@; do - local file_define=NV_`echo $file | tr '/.' '_' | tr '-' '_' | tr 'a-z' 'A-Z'`_PRESENT + for file in "$@"; do + file_define=NV_`echo $file | tr '/.' '_' | tr '-' '_' | tr 'a-z' 'A-Z'`_PRESENT CODE="#include <$file>" @@ -5687,7 +5687,7 @@ case "$5" in HASH=$(get_configuration_option CONFIG_MODULE_SIG_HASH) - if [ $? -eq 0 ] && [ -n $HASH ]; then + if [ $? -eq 0 ] && [ -n "$HASH" ]; then echo $HASH exit 0 else