From: Thibaut VARÈNE Date: Fri, 28 Feb 2020 23:59:45 +0000 (+0100) Subject: rsync.sh: set pipefail X-Git-Tag: v1~56 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5bf6d231ce5343ef57b81f7953a378092080657f;p=buildbot.git rsync.sh: set pipefail to capture rsync failures when piped through pv Signed-off-by: Thibaut VARÈNE --- 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