dev (minor): add utility function sadsay
This commit is contained in:
parent
17284bbab4
commit
17598c2248
2 changed files with 7 additions and 1 deletions
|
@ -10,6 +10,12 @@ say() {
|
|||
color
|
||||
}
|
||||
|
||||
sadsay() {
|
||||
color 5 # magenta
|
||||
printf '( T-T) < %s\n' "$1"
|
||||
color
|
||||
}
|
||||
|
||||
run() {
|
||||
color 3 # yellow
|
||||
printf '[running] $ %s\n' "$1"
|
||||
|
|
|
@ -86,7 +86,7 @@ case "${resp}" in
|
|||
./neko/update/docker.sh 'podman' "$@"
|
||||
;;
|
||||
[Yy]|[Yy][Ee][Ss])
|
||||
printf "Watch out! ${resp} is not a valid answer.\n" >&2
|
||||
sadsay "Watch out! ${resp} is not a valid answer." >&2
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue