[openwrt/openwrt] scripts/mkits.sh: fix remaining shellcheck warning

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 11 09:54:59 EDT 2020


ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/dec9ae6d9e8352498b19287b6361c83701308662

commit dec9ae6d9e8352498b19287b6361c83701308662
Author: Petr Štetiar <ynezz at true.cz>
AuthorDate: Sat Jul 11 13:31:35 2020 +0200

    scripts/mkits.sh: fix remaining shellcheck warning
    
    Fixes following shellcheck warning:
    
     In scripts/mkits.sh line 19:
                     "-k kernel [-D name -d dtb] -o its_file" "$(basename $0)"
                                                                           ^-- SC2086: Double quote to prevent globbing and word splitting.
    
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 scripts/mkits.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/mkits.sh b/scripts/mkits.sh
index 62cfc21c6b..65071e13ee 100755
--- a/scripts/mkits.sh
+++ b/scripts/mkits.sh
@@ -16,7 +16,7 @@
 
 usage() {
 	printf "Usage: %s -A arch -C comp -a addr -e entry -v version"\
-		 "-k kernel [-D name -d dtb] -o its_file" "$(basename $0)"
+		 "-k kernel [-D name -d dtb] -o its_file" "$(basename "$0")"
 	printf "\n\t-A ==> set architecture to 'arch'"
 	printf "\n\t-C ==> set compression type 'comp'"
 	printf "\n\t-c ==> set config name 'config'"



More information about the lede-commits mailing list