X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=zfs-restore;fp=zfs-restore;h=d5ca2e6caeb9e079d1562e217fa3199b617f09fc;hb=a44c3f17def4addd4be08f31b934afa9c4ce0a8d;hp=4014ff74598a277f04e330f79757364ccf3fda69;hpb=1b47ee7ab9a7902d5a97ff550fabf9f635abef30;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