Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
resolves #4 DUNE doesn't work on MacOS/Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpassmore committed Jul 7, 2022
1 parent 3fee825 commit bfb9678
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/bash
#!/usr/bin/env bash

SDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
python3 $SDIR/src/dune $@

0 comments on commit bfb9678

Please sign in to comment.