summaryrefslogtreecommitdiff
path: root/simplec
diff options
context:
space:
mode:
Diffstat (limited to 'simplec')
-rwxr-xr-xsimplec10
1 files changed, 8 insertions, 2 deletions
diff --git a/simplec b/simplec
index ca544e8..d2d5480 100755
--- a/simplec
+++ b/simplec
@@ -1,3 +1,9 @@
#!/bin/sh
-`dirname $0`
-exec erl -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s simplec
+BIN=$(realpath $0)
+cd $(dirname $BIN)
+
+if [ ! -t 1 ]; then
+ ARGS=-noinput
+fi
+
+exec erl $ARGS -pa $PWD/ebin $PWD/deps/*/ebin -boot start_sasl -s simplec