mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-28 02:23:44 +03:00
Explicitly handle empty SCHEME env var in bootstrap/idris2-boot
Before this commit the error was: ``` bootstrap/idris2-boot: line 15: --script: command not found ```
This commit is contained in:
parent
0d363c9732
commit
d56efff0a7
5
bootstrap/idris2-boot
vendored
5
bootstrap/idris2-boot
vendored
@ -10,6 +10,11 @@ case `uname -s` in
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "${SCHEME}"; then
|
||||
echo "SCHEME env var is not set" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:`dirname "$DIR"`/"idris2_app""
|
||||
export PATH="`dirname "$DIR"`/"idris2_app":$PATH"
|
||||
${SCHEME} --script "`dirname $DIR`"/"idris2_app/idris2-boot.so" "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user