[buildbot] rsync.sh: set pipefail
LEDE Commits
lede-commits at lists.infradead.org
Sat Nov 7 14:15:33 EST 2020
jow pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/5bf6d231ce5343ef57b81f7953a378092080657f
commit 5bf6d231ce5343ef57b81f7953a378092080657f
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Sat Feb 29 00:59:45 2020 +0100
rsync.sh: set pipefail
to capture rsync failures when piped through pv
Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
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
More information about the lede-commits
mailing list