Skip to content

Commit

Permalink
chore: use brew prefix
Browse files Browse the repository at this point in the history
instead of hardcoded path
  • Loading branch information
carlossg committed Dec 18, 2023
1 parent 2a5d4d7 commit 7fb67af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ from_linux=eclipse-temurin-11
pattern="# common for all images"

# we need gnu-sed on macos
if [ -d /opt/homebrew/opt/gnu-sed/libexec/gnubin ]; then
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
if prefix="$(brew --prefix gnu-sed 2>&1)" && [ -d "${prefix}/libexec/gnubin" ]; then
PATH="${prefix}/libexec/gnubin:$PATH"
fi

for dir in "${all_dirs[@]}"; do
Expand Down

0 comments on commit 7fb67af

Please sign in to comment.