[buildbot] rsync.sh: set pipefail
LEDE Commits
lede-commits at lists.infradead.org
Sat Nov 7 14:15:22 EST 2020
jow pushed a commit to buildbot.git, branch deployment-2020-11-07:
https://git.openwrt.org/d592dbb4a4987a6d3c9c1dd493588f1261acd836
commit d592dbb4a4987a6d3c9c1dd493588f1261acd836
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>
(cherry picked from commit 5bf6d231ce5343ef57b81f7953a378092080657f)
---
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