mirror of
https://example.com
synced 2024-11-26 04:56:39 +09:00
dev: add --no-confirm option to update.sh
This commit is contained in:
parent
6c78356177
commit
7387ccff14
1 changed files with 15 additions and 11 deletions
12
update.sh
12
update.sh
|
@ -14,9 +14,12 @@ function running {
|
|||
}
|
||||
|
||||
say "Start upgrading Firefish!"
|
||||
say "Did you stop your server?"
|
||||
read -r -p "[Y/n] > " yn
|
||||
case "${yn}" in
|
||||
|
||||
# Confirm that the server is stopped
|
||||
if [[ $# != 1 ]] || [[ $1 != "--no-confirm" ]]; then
|
||||
say "Did you stop your server?"
|
||||
read -r -p "[Y/n] > " yn
|
||||
case "${yn}" in
|
||||
[Nn]|[Nn][Oo])
|
||||
say "You must stop your server first!"
|
||||
exit 1
|
||||
|
@ -24,7 +27,8 @@ case "${yn}" in
|
|||
*)
|
||||
say "uwu~ erai erai!\n"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
fi
|
||||
|
||||
# Pull changes
|
||||
## git pull
|
||||
|
|
Loading…
Reference in a new issue