diff --git a/arch-install b/arch-install index 452e971..d205abe 100755 --- a/arch-install +++ b/arch-install @@ -54,7 +54,9 @@ function secureumount() { # custom-mounts for wort in ${mountsnaps} do - umount ${mountpoint}${wort} + if cat /proc/mounts | grep ${mountpoint}${wort} > /dev/null; then + umount ${mountpoint}${wort} + fi done umount ${mountpoint} umount /mnt/btrfs-root