From d17b2f3004afce7af19de65feb72885cf8fabd36 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 4 Jul 2016 11:15:01 +0200 Subject: #4366 --- taler-build/switch_active.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'taler-build') diff --git a/taler-build/switch_active.sh b/taler-build/switch_active.sh index 9707acb..262f14d 100755 --- a/taler-build/switch_active.sh +++ b/taler-build/switch_active.sh @@ -8,8 +8,11 @@ set -eu -if ! taler-deployment-build; then +if ! taler-deployment-build 2>&1 | tee build.log; then echo "Failed to rebuild, not switching" + if test "$1" = "--notify"; then + mail -s "[Taler build] $(date)" --to build-failure@taler.net build.log + fi exit 1 else echo "Successfully built, switching" -- cgit v1.2.3