mvebu/uDPU: add quotes to unmount file
authorRosen Penev <rosenp@gmail.com>
Sat, 20 Aug 2022 21:10:21 +0000 (14:10 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 3 Feb 2023 10:34:20 +0000 (11:34 +0100)
This is the last relevant shellcheck warning thrown.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh

index 92102e8d14f36a7a3cfa77f6ef44b08df241ccf6..b01ad607ee251fc4e56e58dc271306b49ca99a03 100644 (file)
@@ -20,7 +20,7 @@ udpu_check_emmc() {
 udpu_part_prep() {
         if grep -q "$1" /proc/mounts; then
                mounted_part="$(grep -m 1 $1 /proc/mounts | awk '{print $2}')"
-               umount $mounted_part
+               umount "$mounted_part"
                grep -woq "$mounted_part" /proc/mounts && umount -l "$mounted_part"
        fi
 }
@@ -143,7 +143,7 @@ platform_do_upgrade_uDPU() {
        # Remove tmp mounts
        tmp_parts=$(grep "${emmc_dev}" /proc/mounts | awk '{print $2}')
        for part in ${tmp_parts}; do
-               umount $part
+               umount "$part"
                # Force umount is necessary
                grep -q "${part}" /proc/mounts && umount -l "$part"
        done