builds.sr.ht: gracefully fail if .gitter is missing
authorMichael Wallner <mike@php.net>
Tue, 21 Feb 2023 08:46:10 +0000 (09:46 +0100)
committerMichael Wallner <mike@php.net>
Tue, 21 Feb 2023 08:46:10 +0000 (09:46 +0100)
.builds/scripts/notify-gitter

index f1f5191d9fc2a5304a3339494a7068da09379ae8..22bf064cb0118ea7e874768a07fe46079a0dd6d4 100755 (executable)
@@ -1,6 +1,8 @@
 #!/usr/bin/env bash
 set -eu
 
+test -f ~/.gitter || exit 0
+
 GITTER=$(cat ~/.gitter)
 STATUS=$1