From 5815cd664779359a0575d3bdeb77c30e8037bf91 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 2 Sep 2026 01:39:01 +0400 Subject: [PATCH] perform_upgrade --- lib/self-upgrade.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/self-upgrade.bash b/lib/self-upgrade.bash index 1913ace..6e6af07 100644 --- a/lib/self-upgrade.bash +++ b/lib/self-upgrade.bash @@ -52,7 +52,11 @@ function system_upgrade { } function perform_upgrade { - sudo_root + if sudo_root; then + : + else + builtin exit 1 + fi local backup="$MIAOU_BASH_DIR".before_upgrade sudo mv "$MIAOU_BASH_DIR" "$backup" curl -s --output /tmp/miaou-bash-install.sh "$INSTALL_URL"