target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
[openwrt/staging/mkresin.git] / target / linux / ppc40x / base-files / lib / upgrade / platform.sh
index ed08cab2a1ed5684e56eee46651705e839d89694..b20b83cd57d23893602578335c3d67817de922da 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)