Browse Source

small fix

main
pvincent 3 days ago
parent
commit
6b160d0201
  1. 20
      lib/uninstall.bash

20
lib/uninstall.bash

@ -7,20 +7,20 @@ cd || exit
source "$MIAOU_BASH_DIR"/lib/functions.bash source "$MIAOU_BASH_DIR"/lib/functions.bash
_confirm_destructive
if [[ -f /etc/bash.bashrc.ORIGINAL ]]; then
if _confirm_destructive; then
if [[ -f /etc/bash.bashrc.ORIGINAL ]]; then
rm /etc/bash.bashrc rm /etc/bash.bashrc
mv /etc/bash.bashrc.ORIGINAL /etc/bash.bashrc mv /etc/bash.bashrc.ORIGINAL /etc/bash.bashrc
fi
fi
if [[ -f /etc/inputrc.ORIGINAL ]]; then
if [[ -f /etc/inputrc.ORIGINAL ]]; then
rm /etc/inputrc rm /etc/inputrc
mv /etc/inputrc.ORIGINAL /etc/inputrc mv /etc/inputrc.ORIGINAL /etc/inputrc
fi
fi
rm -f /etc/vimrc/vimrc.{azerty,core,local,miaou,rookie}
rm -rf /opt/miaou-bash
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'
unset MIAOU_BASH_DIR
echo 'MIAOU-BASH fully uninstalled, restored from original'
fi
Loading…
Cancel
Save