aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/functions b/functions
index 833711b..a3c2660 100644
--- a/functions
+++ b/functions
@@ -505,7 +505,9 @@ umount_all() {
mounts=("$target" "${mounts[@]}")
done < <(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /)
- umount -r "${mounts[@]}"
+ if (( ${#mounts[*]} )); then
+ umount -r "${mounts[@]}"
+ fi
}