From: Kevin Darbyshire-Bryant Date: Sun, 4 Feb 2018 10:40:24 +0000 (+0000) Subject: update_kernel.sh: fix syntax error X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=544e33ac98005b587db4e46e3b9c746da2957914;p=maintainer-tools.git update_kernel.sh: fix syntax error Replace while [ $# > 0 ]; with while [ $# -gt 0 ] The former redirects $# to a file '0' creating a stray file as the least worrying of side effects. Signed-off-by: Kevin Darbyshire-Bryant --- diff --git a/update_kernel.sh b/update_kernel.sh index 198ca6b..0cbdb1d 100755 --- a/update_kernel.sh +++ b/update_kernel.sh @@ -12,7 +12,7 @@ UPDATE=0 KERNEL= PATCHVER= -while [ $# > 0 ]; do +while [ $# -gt 0 ]; do case $1 in -b|--build) BUILD=1