fix: lets compare just lowercased versions of uname output

This commit is contained in:
Will Owens
2024-02-27 06:25:26 -05:00
parent 0cf557c7ba
commit b94ff02802

View File

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