update_kernel.sh: fix syntax error
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 4 Feb 2018 10:40:24 +0000 (10:40 +0000)
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Sun, 4 Feb 2018 10:40:24 +0000 (10:40 +0000)
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 <ldir@darbyshire-bryant.me.uk>
update_kernel.sh

index 198ca6b9b8813bd2685da34b82f7ad94d4e8647e..0cbdb1d28f0b9466d528ddaa2a7b8ec7aa95a117 100755 (executable)
@@ -12,7 +12,7 @@ UPDATE=0
 KERNEL=
 PATCHVER=
 
-while [ $# > 0 ]; do
+while [ $# -gt 0 ]; do
        case $1 in
                -b|--build)
                        BUILD=1