v1: fallback pong handler if repo doesn't handle it
This commit is contained in:
parent
3731d7f7e3
commit
bd20420c3d
1 changed files with 9 additions and 1 deletions
8
v1.sh
8
v1.sh
|
|
@ -194,6 +194,14 @@ if [[ ! -z $script_path ]]; then
|
|||
echo " Log: $log_path"
|
||||
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 a new issue