X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=zfs-restore;h=d5ca2e6caeb9e079d1562e217fa3199b617f09fc;hb=e801507fcb8003bdb76b79641ab89b3c63f8ccbb;hp=4014ff74598a277f04e330f79757364ccf3fda69;hpb=f1a0eaf6cb15faf514577513f17fa9a06c34d129;p=zfs-ubuntu%2F.git diff --git a/zfs-restore b/zfs-restore index 4014ff7..d5ca2e6 100755 --- a/zfs-restore +++ b/zfs-restore @@ -16,6 +16,9 @@ dst_pool=$3 dst_fs=$4 dst_hostname=$5 +# return non-zero exit code if any command in the pipe fails +set -o pipefail + if [[ -z "$SCRIPT_UNDER_TEST" ]]; then exec >> $logdir/zfs-restore.log 2>&1 fi