mvebu: remove bashism
authorSven Roederer <devel-sven@geroedel.de>
Wed, 25 Dec 2019 17:39:00 +0000 (18:39 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 26 Jan 2020 20:51:32 +0000 (21:51 +0100)
"[[" is a bash extension for test. As the ash-implementation is not
fully compatible we drop its usage.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
[split patch, remove shebang, adjust commit title/message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh

index 032c706605a906c0273f3533be51b68aa08d544a..0bb1dd12cc8d32720e09a59bf904166099094b31 100644 (file)
@@ -31,7 +31,7 @@ udpu_do_part_check() {
 
        # Check if the block devices exist
        for num in ${emmc_parts}; do
-               [[ ! -b ${emmc_dev}p${num} ]] && part_valid="0"
+               [ ! -b ${emmc_dev}p${num} ] && part_valid="0"
        done
 
        # If partitions are missing create a new partition table