rsync.sh: set pipefail
[buildbot.git] / scripts / rsync.sh
1 #!/bin/bash -x
2
3 export LC_ALL=C
4
5 set -o pipefail
6
7 PV=`which pv`
8 RSYNC=rsync
9
10 if [[ -x $PV ]]; then
11 $RSYNC "$@" | $PV -t -i 60 -f
12 else
13 $RSYNC "$@"
14 fi