Tool improvements
This commit is contained in:
15
tools/crystal
Executable file
15
tools/crystal
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eu
|
||||
|
||||
TTY=
|
||||
|
||||
if [ -t 1 ] ; then
|
||||
TTY=-t
|
||||
fi
|
||||
|
||||
docker run -i $TTY \
|
||||
-u "$(id -u):$(id -g)" \
|
||||
-v "$PWD:/app" \
|
||||
-w "/app" \
|
||||
expansion-crystal crystal "$@"
|
Reference in New Issue
Block a user