Make comatible with macOS Catalina 10.15. Now have $HOMEBREW_PREFIX
dblume

dblume commited on 2023-02-15 21:52:19
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -2,7 +2,7 @@
2 2
 
3 3
 if [ -f "${HOME}/.bashrc" ]; then
4 4
     if [[ $(uname -s) == Darwin* ]]; then
5
-        eval "$(/opt/homebrew/bin/brew shellenv)"
5
+        command -v brew >/dev/null 2>&1 && eval "$(brew shellenv)"
6 6
     fi
7 7
     source "${HOME}/.bashrc"
8 8
 fi
9 9