diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-13 20:01:42 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-13 20:01:42 -0500 |
commit | 5e7d5935a1e33fcf083f844ae23cba5574210daa (patch) | |
tree | bb1f868e7db0606b541053ee8768456d6e2382bc | |
parent | 035364b4c252279cd2e0ef0100802e376af6fb2c (diff) | |
download | squashfu-5e7d5935a1e33fcf083f844ae23cba5574210daa.tar.gz |
Squelch output on mountpoint checks
-rwxr-xr-x | squashfu | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -248,8 +248,8 @@ action_backup () { info "Backup requested at $(date --rfc-3339=seconds)" # Cleanup mounts, in case user was doing a rollback and forgot to unmount (or error on last run) - mountpoint "$UNION_MOUNT" && unmount_union - mountpoint "$SQUASH_MOUNT" && unmount_squash + mountpoint "$UNION_MOUNT" &>/dev/null && unmount_union + mountpoint "$SQUASH_MOUNT" &>/dev/null && unmount_squash create_new_incremental @@ -293,7 +293,8 @@ action_rollback () { local num_to_mount=$[ ${#bin_list[@]} - $1 ] - mountpoint "$UNION_MOUNT" || mountpoint "$SQUASH_MOUNT" && unmount_all + mountpoint "$UNION_MOUNT" &>/dev/null && unmount_union + mountpoint "$SQUASH_MOUNT" &>/dev/null && unmount_squash mount_squash |