From 8b4bc7abe073489a3595eeb2d81818852319c148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Sun, 14 Jul 2019 19:03:19 +0200 Subject: treewide: sysupgrade: don't use $ARGV in platform_do_upgrade() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit stage2 passes image path to platform_do_upgrade() as an argument so it can be simply accessed using $1 Signed-off-by: Rafał Miłecki --- target/linux/apm821xx/base-files/lib/upgrade/platform.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/apm821xx') diff --git a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh index 02c750130c..32e87513f3 100755 --- a/target/linux/apm821xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/apm821xx/base-files/lib/upgrade/platform.sh @@ -22,7 +22,7 @@ platform_do_upgrade() { case "$board" in wd,mybooklive) - mbl_do_upgrade "$ARGV" + mbl_do_upgrade "$1" ;; meraki,mr24|\ meraki,mx60|\ @@ -32,7 +32,7 @@ platform_do_upgrade() { nand_do_upgrade "$1" ;; *) - default_do_upgrade "$ARGV" + default_do_upgrade "$1" ;; esac } -- cgit v1.2.3