From d12b7cb941ca3c4ca29e3b6aab4cde48e7e2d908 Mon Sep 17 00:00:00 2001 From: naskya Date: Fri, 5 Jan 2024 14:41:00 +0900 Subject: [PATCH] dev: use sadsay for warnings and some sad reports --- neko/update/docker.sh | 2 +- neko/update/native.sh | 5 +++-- update.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/neko/update/docker.sh b/neko/update/docker.sh index 6af3f41a..07e0ee81 100755 --- a/neko/update/docker.sh +++ b/neko/update/docker.sh @@ -9,7 +9,7 @@ pull() { } if ! pull "$1"; then - say 'awawa, the image may not be compatible with your environment...' + sadsay 'awawa, the image may not be compatible with your environment...' say 'Gonnya try building the image locally!' say 'It takes some time! Why not brew a cup of cofe?' diff --git a/neko/update/native.sh b/neko/update/native.sh index 78dcf127..ef7d9645 100755 --- a/neko/update/native.sh +++ b/neko/update/native.sh @@ -11,7 +11,7 @@ if [ "$#" != '1' ] || [ "$1" != '--skip-all-confirmations' ]; then case "${yn}" in [Nn]|[Nn][Oo]) - say 'You must stop your server first!' + sadsay 'You must stop your server first!' exit 1 ;; *) @@ -49,8 +49,9 @@ br # prevent migration errors if [ ! -f packages/backend/native-utils/built/index.js ]; then - say 'Something went wrong orz... Gonnya try fixing that.' + sadsay 'Something went wrong... Gonnya try fixing that.' run 'cp neko/index.js packages/backend/native-utils/built/index.js' + br else say "It's going well so far!" br diff --git a/update.sh b/update.sh index 58d466a8..5e1507c7 100755 --- a/update.sh +++ b/update.sh @@ -31,7 +31,7 @@ br say 'Checking if the update script itself has been modified by this update...' if [ "$(git diff "${OLD_COMMIT}" "${NEW_COMMIT}" update.sh neko/update)" != '' ]; then say 'Oh meow, that seems to be the case.' - say "I'm sorry to bother you, but please run this script again!" + sadsay "I'm sorry to bother you, but please run this script again!" exit 1 else say 'This script seems to be up-to-date!'