aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/cortexa53/base-files
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2022-08-20 14:10:21 -0700
committerHauke Mehrtens <hauke@hauke-m.de>2023-02-03 11:34:20 +0100
commit822c554d5755301337bce959554bf973b4292322 (patch)
tree40ddd3588c8d895652f1d41a0534881a1133ac2c /target/linux/mvebu/cortexa53/base-files
parentcb6df29cbd45f11edc52e081c6a30af2dd69aad5 (diff)
downloadupstream-822c554d5755301337bce959554bf973b4292322.tar.gz
upstream-822c554d5755301337bce959554bf973b4292322.tar.bz2
upstream-822c554d5755301337bce959554bf973b4292322.zip
mvebu/uDPU: add quotes to unmount file
This is the last relevant shellcheck warning thrown. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/mvebu/cortexa53/base-files')
-rw-r--r--target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh b/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh
index 92102e8d14..b01ad607ee 100644
--- a/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh
+++ b/target/linux/mvebu/cortexa53/base-files/lib/upgrade/uDPU.sh
@@ -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