aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsquashfu4
1 files changed, 2 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index 04a329c..56b48c8 100755
--- a/squashfu
+++ b/squashfu
@@ -211,7 +211,7 @@ action_backup () {
info "Backup requested at $(date --rfc-3339=seconds)"
# Cleanup union, in case user was doing a rollback and forgot to unmount (or error on last run)
- mountpoint "$UNION_MOUNT" &>/dev/null && unmount_union
+ mountpoint -q "$UNION_MOUNT" && unmount_union
info "Creating new bin"
# Make a new bin for this incremenetal
@@ -222,7 +222,7 @@ action_backup () {
# Determine the mount order via binventory
local bin_order=($(sort -n -r -t: -k2 "$BINVENTORY" | cut -d: -f1))
- mountpoint "${SQUASH_MOUNT}" &>/dev/null || mount_squash
+ mountpoint -q "${SQUASH_MOUNT}" || mount_squash
mount_union_with_bins ${bin_order[@]} || return 1
# Includes are pulled in directly from config