mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 08:42:11 +03:00
13 lines
332 B
Plaintext
Executable File
13 lines
332 B
Plaintext
Executable File
# This test needs to run `idris2` from a sub-folder. Get the absolute path.
|
|
|
|
if [ "$(uname)" = Darwin ]; then
|
|
IDRIS2_EXEC=$(zsh -c 'printf %s "$0:A"' "$1")
|
|
else
|
|
IDRIS2_EXEC="$(readlink -f -- "$1")"
|
|
fi
|
|
|
|
cd "folder with spaces" || exit
|
|
|
|
"$IDRIS2_EXEC" --no-color --console-width 0 --no-banner Main.idr < ../input
|
|
rm -rf build
|