self-upgrade reinitialize

This commit is contained in:
pvincent
2026-09-02 01:22:56 +04:00
parent ba5f222063
commit af7fedfce6
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -34,7 +34,9 @@ function system_upgrade {
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version)
latest=$("$MIAOU_BASH_DIR"/tools/wget_semver artcode miaou/miaou-bash)
if [[ "$current" == "$latest" ]]; then
echo "up-to-date version: $current"
echo "up-to-date version: $current (Ctrl-c to bypass reinitialization)"
sudo_root
sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
else
echo "new version available: $latest"
#TODO: should download file self-upgrade.bash itself before calling it against