forked from naskya/firefish
dev: add --no-confirm option to update.sh
This commit is contained in:
parent
8356a9c62b
commit
93a3000d28
1 changed files with 15 additions and 11 deletions
|
@ -14,6 +14,9 @@ function running {
|
|||
}
|
||||
|
||||
say "Start upgrading Firefish!"
|
||||
|
||||
# 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
|
||||
|
@ -25,6 +28,7 @@ case "${yn}" in
|
|||
say "uwu~ erai erai!\n"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Pull changes
|
||||
## git pull
|
||||
|
|
Loading…
Reference in a new issue