This repository has been archived on 2022-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
dandhelper.ex/run
Arthur Poulet f50469bc95 opti programm
- improve runner (shell script using rlwrap if possible)
- add OptiInterface
2016-03-29 23:35:58 +02:00

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