zio
/
webhookd-scripts
Archived
2
0
Fork 0

v1: fallback pong handler if repo doesn't handle it

main
Ducky 2022-01-05 11:07:25 +00:00
parent 3731d7f7e3
commit bd20420c3d
1 changed files with 9 additions and 1 deletions

10
v1.sh
View File

@ -195,5 +195,13 @@ if [[ ! -z $script_path ]]; then
echo " Host: $(hostname) ($(get_os))"
echo " Started: $started_time"
else
die "No handler for $event on $service:$repo"
if [[ $event == "pong" ]]; then
if [[ command -v figlet &> /dev/null ]]; then
figlet "Pong!"
else
echo "Pong!"
fi
else
die "No handler for $event on $service:$repo"
fi
fi