This commit is contained in:
pvincent
2026-08-18 11:45:37 +04:00
parent f8f4940d44
commit b488427332
3 changed files with 12 additions and 18 deletions
+3 -3
View File
@@ -17,17 +17,17 @@ function uninstall {
rm -f /etc/vimrc/vimrc.{azerty,core,local,miaou,rookie}
rm -rf /opt/miaou-bash
unset MIAOU_BASH_DIR
}
# Main
source "$MIAOU_BASH_DIR"/lib/functions.bash
assert_system_mode
assert_root
cd || exit 2 # exit should not occur!
sudo_root
if _confirm_destructive 2>/dev/null; then
cd || exit 2 # exit should not occur!
uninstall
source /etc/profile
echo 'MIAOU-BASH fully uninstalled, previous settings restored from original'
else
builtin exit 1