v1: fallback pong handler if repo doesn't handle it
parent
3731d7f7e3
commit
bd20420c3d
8
v1.sh
8
v1.sh
|
@ -195,5 +195,13 @@ if [[ ! -z $script_path ]]; then
|
|||
echo " Host: $(hostname) ($(get_os))"
|
||||
echo " Started: $started_time"
|
||||
else
|
||||
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
|
||||
|
|
Reference in New Issue