fix for macOS
Co-authored-by: Brett Jones <54408245+kowh-ai@users.noreply.github.com>
This commit is contained in:
parent
faa3234773
commit
d9a3540cdf
@ -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" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user