aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/cns21xx/base-files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/cns21xx/base-files/lib')
-rwxr-xr-xtarget/linux/cns21xx/base-files/lib/upgrade/platform.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/cns21xx/base-files/lib/upgrade/platform.sh b/target/linux/cns21xx/base-files/lib/upgrade/platform.sh
index 52aa789f5b..fd9bd28996 100755
--- a/target/linux/cns21xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/cns21xx/base-files/lib/upgrade/platform.sh
@@ -11,7 +11,7 @@ platform_check_image() {
local board=$(get_board_name)
local magic="$(get_magic_word "$1")"
- [ "$ARGC" -gt 1 ] && return 1
+ [ "$#" -gt 1 ] && return 1
case "$board" in
nsb3ast)