Merge pull request #334 from ghthor/pr/330

Uninstall: lowercase "darwin" on MacOS
This commit is contained in:
Will Owens
2024-02-27 08:00:16 -05:00
committed by GitHub

View File

@@ -2,8 +2,10 @@
# uninstall by (github: bernardofire)
# Remove line from bashrc and zshrc if present.
OS=$(uname -s | awk '{print tolower($0)}')
sed="sed -i"
if [[ $OSTYPE == "Darwin" ]]; then
if [[ "$OS" == "darwin" ]]; then
sed="sed -i ''"
fi