mvebu: sysupgrade: don't use $ARGV in platform_check_image()
authorRafał Miłecki <rafal@milecki.pl>
Sun, 14 Jul 2019 16:59:59 +0000 (18:59 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Sat, 7 Sep 2019 12:31:45 +0000 (14:31 +0200)
commit15292501a1a9ca979b7b92d5187a7b095fe3af66
treea3964cb86a79b02ba44851e24e30e8b2ab78dfbd
parent5ae87c76b7fb2fb6e3c5ac5f4219ea652def092a
mvebu: sysupgrade: don't use $ARGV in platform_check_image()

sysupgrade passes image path to platform_check_image() as an argument so
it can be simply accessed using $1

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 76e43c82b55518b794ac24f9acfb3888c638f99b)
[rmilecki: dropping ARGV without this change broke sysupgrade]
Fixes: 6ac62c4b6cae ("base-files: don't set ARGV and ARGC")
target/linux/mvebu/base-files/lib/upgrade/platform.sh