new install, self-upgrade, uninstall

This commit is contained in:
pvincent
2026-08-11 19:22:34 +04:00
parent d6166474db
commit 47427be78b
4 changed files with 40 additions and 30 deletions
+4 -5
View File
@@ -20,12 +20,11 @@ function bootstrap {
}
function self_upgrade {
rm -rf "$MIAOU_BASH_DIR"
bootstrap
. "$MIAOU_BASH_DIR/lib/init.bash"
mv "$MIAOU_BASH_DIR" "$MIAOU_BASH_DIR".before_upgrade
"$MIAOU_BASH_DIR".before_upgrade/install.sh
rm -rf "$MIAOU_BASH_DIR".before_upgrade
echo "miaou-bash successfully updated"
miaou-bash --version
. "$MIAOU_BASH_DIR"/bin/miaou-bash --version
}
# MAIN