Skip to content

Commit

Permalink
fix for macOS
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Jones <[email protected]>
  • Loading branch information
wardi and kowh-ai authored Dec 18, 2024
1 parent faa3234 commit d9a3540
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/generate_extension
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

set -e
ROOT="$(dirname ${BASH_SOURCE[0]})/.."
USERGROUP="$(stat -c '%u:%g' "${ROOT}/src")"
if [ "$USERGROUP" == ":" ]; then
# macos stat?
if [[ "$(uname)" == "Darwin" ]]; then
# macOS
USERGROUP="$(stat -f '%u:%g' "${ROOT}/src")"
else
USERGROUP="$(stat -c '%u:%g' "${ROOT}/src")"
fi

docker compose -f "${ROOT}/docker-compose.dev.yml" exec -u "$USERGROUP" \
Expand Down

0 comments on commit d9a3540

Please sign in to comment.