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)
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

index 981fa2aa2e4afa96cab60a9110f9facf18fc393e..58e7d83e4e7f507592f516a3e1b466f2b82a7bc4 100755 (executable)
@@ -11,7 +11,7 @@ platform_check_image() {
        case "$(board_name)" in
        cznic,turris-omnia|globalscale,espressobin|globalscale,espressobin-emmc|globalscale,espressobin-v7|globalscale,espressobin-v7-emmc|\
        marvell,armada8040-mcbin|solidrun,clearfog-base-a1|solidrun,clearfog-pro-a1)
-               platform_check_image_sdcard "$ARGV"
+               platform_check_image_sdcard "$1"
                ;;
        *)
                return 0