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
+3 -4
View File
@@ -17,9 +17,7 @@ function uninstall {
rm -f /etc/vimrc/vimrc.{azerty,core,local,miaou,rookie}
rm -rf /opt/miaou-bash
unset MIAOU_BASH_DIR
echo 'MIAOU-BASH fully uninstalled, restored from original'
}
# Main
@@ -29,7 +27,8 @@ assert_system_mode
assert_root
cd || exit
if _confirm_destructive; then
uninstall
uninstall
echo 'MIAOU-BASH fully uninstalled, previous settings restored from original'
else
>&2 echo canceled && builtin exit 1
builtin exit 1
fi