compiler-discord/docker/javascript/run.sh

12 lines
172 B
Bash
Raw Normal View History

2019-03-13 06:51:49 +01:00
if [ "$EVAL_EXPR" = "true" ]; then
flag="-p"
else
flag="-e"
fi
2019-03-12 10:09:46 +01:00
if [ "$EVAL_HARMONY" = "true" ]; then
2019-03-13 06:51:49 +01:00
node --harmony "$flag" "$1"
2019-03-12 10:09:46 +01:00
else
2019-03-13 06:51:49 +01:00
node "$flag" "$1"
2019-03-12 10:09:46 +01:00
fi