f50469bc95
- improve runner (shell script using rlwrap if possible) - add OptiInterface
13 lines
339 B
Bash
Executable File
13 lines
339 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if [ -f $(whereis elixir | cut -d' ' -f2) ]; then
|
|
cmd="elixir"
|
|
if [ -f $(whereis rlwrap | cut -d' ' -f2) ]; then
|
|
cmd="rlwrap elixir"
|
|
fi
|
|
if [ "$1" = "" ]; then eval "$cmd main_roll.exs" ; fi
|
|
if [ "$1" = "opti" ]; then eval "$cmd main_opti.exs" ; fi
|
|
else
|
|
echo "Please install Elixir before any actions"
|
|
fi
|