target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt.git] / target / linux / ppc40x / base-files / lib / upgrade / platform.sh
index ed08cab..b20b83c 100644 (file)
@@ -11,7 +11,7 @@ platform_check_image() {
        local board=$(ppc40x_board_name)
        local magic="$(get_magic_word "$1")"
 
-       [ "$ARGC" -gt 1 ] && return 1
+       [ "$#" -gt 1 ] && return 1
 
        case "$board" in
        kilauea | openrb | magicbox)