umount-fix

This commit is contained in:
simono41 2018-05-10 03:57:29 +02:00
parent 3351fcbe9e
commit f0b86bd502

View file

@ -54,7 +54,9 @@ function secureumount() {
# custom-mounts
for wort in ${mountsnaps}
do
if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then
umount ${mountpoint}${wort}
fi
done
umount ${mountpoint}
umount /mnt/btrfs-root