Skip to content

Commit

Permalink
Fixing CI + better strategy for finding brew path
Browse files Browse the repository at this point in the history
  • Loading branch information
rtetley committed Dec 20, 2023
1 parent e7fb6f2 commit 4f0a01f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions macos/create_installer_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ echo "##### Coq version = ${COQ_VERSION} (Mac app version=${COQ_VERSION_MACOS})

set +e
PORTCMD="$(which port)"
BREWCMD="$(which brew)"
set -e

if [ -z "${PORTCMD}" ]; then
PKG_MANAGER=brew
PKG_MANAGER_ROOT="/usr/local/"
PKG_MANAGER_ROOT_STRIP="/usr/local/Cellar/*/*/" # one * for the package name and one for its version
PKG_MANAGER_ROOT="${BREWCMD%bin/brew}"
PKG_MANAGER_ROOT_STRIP="${PKG_MANAGER_ROOT}Cellar/*/*/" # one * for the package name and one for its version
else
PKG_MANAGER=port
# If someone knows a better way to find out where port is installed, please let me know!
Expand Down

0 comments on commit 4f0a01f

Please sign in to comment.