mvebu/uDPU: add quotes to unmount file
This is the last relevant shellcheck warning thrown. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Hauke Mehrtens
parent
cb6df29cbd
commit
822c554d57
@@ -20,7 +20,7 @@ udpu_check_emmc() {
|
|||||||
udpu_part_prep() {
|
udpu_part_prep() {
|
||||||
if grep -q "$1" /proc/mounts; then
|
if grep -q "$1" /proc/mounts; then
|
||||||
mounted_part="$(grep -m 1 $1 /proc/mounts | awk '{print $2}')"
|
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"
|
grep -woq "$mounted_part" /proc/mounts && umount -l "$mounted_part"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -143,7 +143,7 @@ platform_do_upgrade_uDPU() {
|
|||||||
# Remove tmp mounts
|
# Remove tmp mounts
|
||||||
tmp_parts=$(grep "${emmc_dev}" /proc/mounts | awk '{print $2}')
|
tmp_parts=$(grep "${emmc_dev}" /proc/mounts | awk '{print $2}')
|
||||||
for part in ${tmp_parts}; do
|
for part in ${tmp_parts}; do
|
||||||
umount $part
|
umount "$part"
|
||||||
# Force umount is necessary
|
# Force umount is necessary
|
||||||
grep -q "${part}" /proc/mounts && umount -l "$part"
|
grep -q "${part}" /proc/mounts && umount -l "$part"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user