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>
Wed, 17 Jul 2019 06:09:41 +0000 (08:09 +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>
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