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

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