Skip to content

Commit ea6ee38

Browse files
committed
Fixing CI + better strategy for finding brew path
1 parent 9bdf298 commit ea6ee38

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

macos/create_installer_macos.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@ echo "##### Coq version = ${COQ_VERSION} (Mac app version=${COQ_VERSION_MACOS})
115115

116116
set +e
117117
PORTCMD="$(which port)"
118+
BREWCMD="$(which brew)"
118119
set -e
119120

120121
if [ -z "${PORTCMD}" ]; then
121122
PKG_MANAGER=brew
122-
PKG_MANAGER_ROOT="/usr/local/"
123-
PKG_MANAGER_ROOT_STRIP="/usr/local/Cellar/*/*/" # one * for the package name and one for its version
123+
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
124125
else
125126
PKG_MANAGER=port
126127
# If someone knows a better way to find out where port is installed, please let me know!

0 commit comments

Comments
 (0)