Fix uninstall for osx
This commit is contained in:
10
uninstall.sh
10
uninstall.sh
@@ -1,7 +1,15 @@
|
||||
#!/bin/sh
|
||||
# uninstall by (github: bernardofire)
|
||||
# Remove line from bashrc and zshrc if present.
|
||||
|
||||
sed="sed -i"
|
||||
if [[ $OSTYPE == "Darwin" ]]; then
|
||||
sed="sed -i ''"
|
||||
fi
|
||||
|
||||
for rc in bashrc zshrc; do
|
||||
sed -i '/scm_breeze/d' "$HOME/.$rc"
|
||||
if [ -f "$HOME/.$rc" ]; then
|
||||
$sed '/scm_breeze/d' "$HOME/.$rc" &&
|
||||
printf "Removed SCM Breeze from %s\n" "$HOME/.$rc"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user