rsync.sh: set pipefail
authorThibaut VARÈNE <hacks@slashdirt.org>
Fri, 28 Feb 2020 23:59:45 +0000 (00:59 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 7 Nov 2020 19:14:45 +0000 (20:14 +0100)
to capture rsync failures when piped through pv

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
scripts/rsync.sh

index 64f95764765f9a74607efcb9ad720ce40b159468..cc792ef06fceb349c1f9c5da92e45198ddd2ec39 100755 (executable)
@@ -2,6 +2,8 @@
 
 export LC_ALL=C
 
+set -o pipefail
+
 PV=`which pv`
 RSYNC=rsync