From e7a3987883d4eba1fb53707393f395e9cd1d97a6 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 6 Jun 2010 20:32:11 -0400 Subject: use more mountpoint -q, less &>/dev/null --- squashfu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'squashfu') 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 -- cgit v1.2.3