We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bdf298 commit ea6ee38Copy full SHA for ea6ee38
macos/create_installer_macos.sh
@@ -115,12 +115,13 @@ echo "##### Coq version = ${COQ_VERSION} (Mac app version=${COQ_VERSION_MACOS})
115
116
set +e
117
PORTCMD="$(which port)"
118
+BREWCMD="$(which brew)"
119
set -e
120
121
if [ -z "${PORTCMD}" ]; then
122
PKG_MANAGER=brew
- PKG_MANAGER_ROOT="/usr/local/"
123
- PKG_MANAGER_ROOT_STRIP="/usr/local/Cellar/*/*/" # one * for the package name and one for its version
+ PKG_MANAGER_ROOT="${BREWCMD%bin/brew}"
124
+ PKG_MANAGER_ROOT_STRIP="${PKG_MANAGER_ROOT}Cellar/*/*/" # one * for the package name and one for its version
125
else
126
PKG_MANAGER=port
127
# If someone knows a better way to find out where port is installed, please let me know!
0 commit comments