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