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:
Stiopa Koltsov 2021-01-17 01:44:25 +00:00 committed by G. Allais
parent 0d363c9732
commit d56efff0a7

View File

@ -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" "$@"