small fix
This commit is contained in:
+15
-15
@@ -7,20 +7,20 @@ cd || exit
|
|||||||
|
|
||||||
source "$MIAOU_BASH_DIR"/lib/functions.bash
|
source "$MIAOU_BASH_DIR"/lib/functions.bash
|
||||||
|
|
||||||
_confirm_destructive
|
if _confirm_destructive; then
|
||||||
|
if [[ -f /etc/bash.bashrc.ORIGINAL ]]; then
|
||||||
|
rm /etc/bash.bashrc
|
||||||
|
mv /etc/bash.bashrc.ORIGINAL /etc/bash.bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -f /etc/bash.bashrc.ORIGINAL ]]; then
|
if [[ -f /etc/inputrc.ORIGINAL ]]; then
|
||||||
rm /etc/bash.bashrc
|
rm /etc/inputrc
|
||||||
mv /etc/bash.bashrc.ORIGINAL /etc/bash.bashrc
|
mv /etc/inputrc.ORIGINAL /etc/inputrc
|
||||||
|
fi
|
||||||
|
|
||||||
|
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'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f /etc/inputrc.ORIGINAL ]]; then
|
|
||||||
rm /etc/inputrc
|
|
||||||
mv /etc/inputrc.ORIGINAL /etc/inputrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
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'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user