diff --git a/bootstrap.sh b/bootstrap.sh index f84e9ac..74714be 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,9 @@ -#! /usr/bin/bash +#!/usr/bin/env bash SDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -docker build --build-arg USER_ID=$(id -u ${USER}) --build-arg GROUP_ID=$(id -g ${USER}) -t dune $SDIR +GROUP_ID=$(id -g ${USER}) +# for mac users +if [[ $(uname) == "Darwin" ]]; then + GROUP_ID=200 +fi +docker build --build-arg USER_ID=$(id -u ${USER}) --build-arg GROUP_ID=${GROUP_ID} -t dune $SDIR diff --git a/dune b/dune index f7fd0f7..2c04c0a 100755 --- a/dune +++ b/dune @@ -1,4 +1,4 @@ -#! /usr/bin/bash +#!/usr/bin/env bash SDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) python3 $SDIR/src/dune $@