Skip to content

Commit

Permalink
handle TMPDIR for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Dec 13, 2024
1 parent 056941f commit ce176b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/universal/bin/apalache-mc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ then
fi

# Avoid SANY concurrency issues: https://github.com/tlaplus/tlaplus/issues/688
TD=`mktemp -d "$TMPDIR"/SANYXXXXXXXXXX`
if [ -z "$TMPDIR" ]; then
TMPDIR="$(pwd)/tmp"
mkdir -p "$TMPDIR"
fi
TD=`mktemp -d -p $TMPDIR -t SANYXXXXXXXXXX`
JVM_ARGS="${JVM_ARGS} -Djava.io.tmpdir=$TD"

# Check whether the CLI args contains the debug flag
Expand Down

0 comments on commit ce176b0

Please sign in to comment.