Skip to content

Commit

Permalink
uninstall: check for backup files, not config files
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Feb 15, 2022
1 parent eb14b34 commit 90fcb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
: "${BASH_IT:=${HOME?}/.bash_it}"

CONFIG_FILE=".bashrc"
if [[ ! -e ~/.bashrc && -e ~/.bash_profile ]]; then
if [[ ! -e ~/.bashrc.bak && -e ~/.bash_profile.bak ]]; then
# legacy Mac or WSL or just no backup file
CONFIG_FILE=".bash_profile"
fi
Expand Down

0 comments on commit 90fcb4d

Please sign in to comment.