14 lines
322 B
Bash
Executable File
14 lines
322 B
Bash
Executable File
#!/bin/sh
|
|
readlink_f () {
|
|
cd "$(dirname "$1")" > /dev/null
|
|
local filename="$(basename "$1")"
|
|
if [ -h "$filename" ]; then
|
|
readlink_f "$(readlink "$filename")"
|
|
else
|
|
echo "`pwd -P`/$filename"
|
|
fi
|
|
}
|
|
|
|
SELF=$(readlink_f "$0")
|
|
SCRIPT_PATH=$(dirname "$SELF")
|
|
exec "$SCRIPT_PATH"/elixir --no-halt -e "IEx.cli" "$@" |