Compare commits
2 commits
f092e4b334
...
dd6a629009
Author | SHA1 | Date | |
---|---|---|---|
dd6a629009 | |||
1bf14be63f |
2 changed files with 30 additions and 24 deletions
|
@ -1,8 +1,8 @@
|
||||||
----------------------------------------------------
|
---------------------------------------------------
|
||||||
| For systemd users: |
|
| For systemd users: |
|
||||||
| This Firefish flavor currently requires Node v21 |
|
| This Firefish flavor currently requires Node v21 |
|
||||||
| PLEASE CHECK YOUR NODE VERSION BEFORE UPGRADING!! |
|
| PLEASE CHECK YOUR NODE VERSION BEFORE UPGRADING!! |
|
||||||
| |
|
| |
|
||||||
| For the detailed explanation, see: |
|
| For the detailed explanation, see: |
|
||||||
| https://post.naskya.net/notes/9ntn882tzcfe1qm6 |
|
| https://post.naskya.net/notes/9ntn882tzcfe1qm6 |
|
||||||
----------------------------------------------------
|
---------------------------------------------------
|
||||||
|
|
50
update.sh
50
update.sh
|
@ -33,31 +33,37 @@ fi
|
||||||
## show messages
|
## show messages
|
||||||
for message in neko/messages/*; do
|
for message in neko/messages/*; do
|
||||||
file=$(basename -- "${message}")
|
file=$(basename -- "${message}")
|
||||||
if [ ! -f "neko/flags/${file}" ]; then
|
|
||||||
if [ "$#" != '1' ] || [ "$1" != '--skip-all-confirmations' ]; then
|
|
||||||
say 'There is an important notice!'
|
|
||||||
cat "${message}"
|
|
||||||
|
|
||||||
say 'Continue? (Are you ready for upgrading?)'
|
case "${file}" in
|
||||||
printf '[y/N] > '
|
*'.resolved') ;;
|
||||||
read -r yn
|
*)
|
||||||
|
if [ ! -f "neko/flags/${file}" ]; then
|
||||||
|
if [ "$#" != '1' ] || [ "$1" != '--skip-all-confirmations' ]; then
|
||||||
|
say 'There is an important notice!'
|
||||||
|
cat "${message}"
|
||||||
|
|
||||||
case "${yn}" in
|
say 'Continue? (Are you ready for upgrading?)'
|
||||||
[Yy]|[Yy][Ee][Ss])
|
printf '[y/N] > '
|
||||||
|
read -r 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}"
|
||||||
|
br
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
say "Okay, please run this script again when you're ready!"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
touch "neko/flags/${file}"
|
touch "neko/flags/${file}"
|
||||||
say "Let's go!"
|
fi
|
||||||
say "To read the message again, run: \$ cat ${message}"
|
fi
|
||||||
br
|
;;
|
||||||
;;
|
esac
|
||||||
*)
|
|
||||||
say "Okay, please run this script again when you're ready!"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
touch "neko/flags/${file}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
say 'Do you use Docker?'
|
say 'Do you use Docker?'
|
||||||
|
|
Loading…
Reference in a new issue