1
0
Fork 1
mirror of https://example.com synced 2024-11-22 14:46:38 +09:00

dev (minor): add utility function sadsay

This commit is contained in:
naskya 2024-01-05 13:18:25 +09:00
parent 17284bbab4
commit 17598c2248
Signed by: naskya
GPG key ID: 712D413B3A9FED5C
2 changed files with 7 additions and 1 deletions

View file

@ -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"

View file

@ -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
;;
*)