]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/dist-x86_64-linux/shared.sh
New upstream version 1.45.0+dfsg1
[rustc.git] / src / ci / docker / dist-x86_64-linux / shared.sh
CommitLineData
32a655c1
SL
1hide_output() {
2 set +x
3 on_err="
4echo ERROR: An error was encountered with the build.
5cat /tmp/build.log
6exit 1
7"
8 trap "$on_err" ERR
9 bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
10 PING_LOOP_PID=$!
11 $@ &> /tmp/build.log
12 trap - ERR
13 kill $PING_LOOP_PID
14 set -x
15}