diff options
Diffstat (limited to 'taler-build')
-rwxr-xr-x | taler-build/switch_active.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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" |