Permalink
Browse files

use more mountpoint -q, less &>/dev/null

  • Loading branch information...
1 parent ca48c8e commit e7a3987883d4eba1fb53707393f395e9cd1d97a6 @falconindy committed Jun 7, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 squashfu
View
@@ -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

0 comments on commit e7a3987

Please sign in to comment.