1
0
Fork 1
mirror of https://example.com synced 2024-11-22 22:36:38 +09:00

dev: add --no-confirm option to update.sh

This commit is contained in:
naskya 2023-10-27 23:05:57 +09:00
parent 6c78356177
commit 7387ccff14
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -14,17 +14,21 @@ function running {
}
say "Start upgrading Firefish!"
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
;;
*)
say "uwu~ erai erai!\n"
;;
esac
# 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
;;
*)
say "uwu~ erai erai!\n"
;;
esac
fi
# Pull changes
## git pull