From 5bf6d231ce5343ef57b81f7953a378092080657f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thibaut=20VAR=C3=88NE?= Date: Sat, 29 Feb 2020 00:59:45 +0100 Subject: [PATCH] rsync.sh: set pipefail MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit to capture rsync failures when piped through pv Signed-off-by: Thibaut VARÈNE --- scripts/rsync.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/rsync.sh b/scripts/rsync.sh index 64f9576..cc792ef 100755 --- a/scripts/rsync.sh +++ b/scripts/rsync.sh @@ -2,6 +2,8 @@ export LC_ALL=C +set -o pipefail + PV=`which pv` RSYNC=rsync -- 2.30.2