self-upgrade delays sudo_root

This commit is contained in:
pvincent
2026-08-20 19:17:29 +04:00
parent 9c2428cb4c
commit 180e7bf7db
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -22,7 +22,6 @@ function self_upgrade {
# MAIN
source "$MIAOU_BASH_DIR"/lib/functions.bash
sudo_root
assert_system_mode
current=$("$MIAOU_BASH_DIR"/bin/miaou-bash --version)
@@ -30,5 +29,7 @@ latest=$("$MIAOU_BASH_DIR"/tools/wget_semver artcode miaou/miaou-bash)
if [[ "$current" == "$latest" ]]; then
echo "up-to-date version: $current"
else
echo "new version available: $latest"
sudo_root
self_upgrade
fi