target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt.git] / target / linux / x86 / olpc / base-files / lib / upgrade / platform.sh
index ffd0b93..c90a4ce 100644 (file)
@@ -1,5 +1,5 @@
 platform_check_image() {
-       [ "$ARGC" -gt 1 ] && return 1
+       [ "$#" -gt 1 ] && return 1
 
        case "$(get_magic_word "$1")" in
                48eb) return 0;;