From 17598c224808b13f2bf0274a86b00d1b53381c4d Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 5 Jan 2024 13:18:25 +0900 Subject: [PATCH] dev (minor): add utility function `sadsay` --- neko/update/utils | 6 ++++++ update.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/neko/update/utils b/neko/update/utils index 2141942d..230e5153 100644 --- a/neko/update/utils +++ b/neko/update/utils @@ -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" diff --git a/update.sh b/update.sh index 285bcd44..6e52c264 100755 --- a/update.sh +++ b/update.sh @@ -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 ;; *)