projects
/
buildbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ad60fa
)
rsync.sh: set pipefail
author
Thibaut VARÈNE
<hacks@slashdirt.org>
Fri, 28 Feb 2020 23:59:45 +0000
(
00:59
+0100)
committer
Jo-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
patch
|
blob
|
history
diff --git
a/scripts/rsync.sh
b/scripts/rsync.sh
index 64f95764765f9a74607efcb9ad720ce40b159468..cc792ef06fceb349c1f9c5da92e45198ddd2ec39 100755
(executable)
--- a/
scripts/rsync.sh
+++ b/
scripts/rsync.sh
@@
-2,6
+2,8
@@
export LC_ALL=C
+set -o pipefail
+
PV=`which pv`
RSYNC=rsync