target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt.git] / target / linux / atheros / base-files / lib / upgrade / platform.sh
index d4daaac..d44b8fa 100644 (file)
@@ -31,7 +31,7 @@ platform_find_kernelpart() {
 }
 
 platform_check_image() {
-       [ "$ARGC" -gt 1 ] && return 1
+       [ "$#" -gt 1 ] && return 1
 
        case "$(get_magic_word "$1")" in
                # Combined Image