tools/uninstall: Remove "chsh -s /bin/bash"

The code is originated from the uninstallation script for ohmyzsh,
which switches the default shell from Bash to Zsh in its installation.
Oh-my-bash does not change the default shell in its installation, so
there is no need to change it back to /bin/bash in the uninstallation.
This commit is contained in:
Koichi Murase
2021-12-29 12:11:00 +09:00
parent 7d8a848d2c
commit cafb35836e

View File

@ -25,13 +25,6 @@ if [ -f ~/.bashrc.pre-oh-my-bash ] || [ -h ~/.bashrc.pre-oh-my-bash ]; then
exec bash; source ~/.bashrc
echo "Your original bash config was restored. Please restart your session."
else
if hash chsh >/dev/null 2>&1; then
echo "Switching back to bash"
chsh -s /bin/bash
else
echo "You can edit /etc/passwd to switch your default shell back to bash"
fi
fi
echo "Thanks for trying out Oh My Bash. It has been uninstalled."