Update util-iso-mount.sh

This commit is contained in:
Philip Müller 2021-07-20 10:12:29 +00:00
parent 9a99817285
commit 4e6e583a7d

View file

@ -80,7 +80,8 @@ umount_fs(){
unset FS_ACTIVE_MOUNTS unset FS_ACTIVE_MOUNTS
rm -rf "${mnt_dir}/work" rm -rf "${mnt_dir}/work"
fi fi
for i in "$(grep ${work_dir} /proc/mounts | awk '{print$2}' | sort -r)" mount_folders=$(grep "${work_dir}" /proc/mounts | awk '{print$2}' | sort -r)
for i in mount_folders
do do
cat /proc/mounts cat /proc/mounts
info "umount: [%s]" "$i" info "umount: [%s]" "$i"