diff --git a/README.md b/README.md index a927716a..7c060bee 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,7 @@ ToDo (#82) 1. 新しい Firefish のディレクトリに入ってビルドする ```sh $ cd calckey - $ ./update.sh + $ ./update.sh --no-confirm ``` 1. サーバーを起動して動作を確認する ```sh diff --git a/update.sh b/update.sh index 2f2a3c02..17506e11 100755 --- a/update.sh +++ b/update.sh @@ -68,9 +68,21 @@ for message in neko/messages/*; do if [[ ! -f "neko/flags/${file}" ]]; then say "There is an important notice!" cat "${message}" - touch "neko/flags/${file}" - say "To read this again, run: \$ cat ${message}" - exit 1 + if [[ $# != 1 ]] || [[ $1 != "--no-confirm" ]]; then + say "Continue? (Are you ready for upgrading?)" + read -r -p "[y/N] > " yn + case "${yn}" in + [Yy]|[Yy][Ee][Ss]) + touch "neko/flags/${file}" + say "Let's go!" + say "To read the message again, run: \$ cat ${message}" + ;; + *) + say "Okay, please run this script again when you're ready!" + exit 1 + ;; + esac + fi fi done