new install, self-upgrade, uninstall
This commit is contained in:
+3
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user