Idris2/bootstrap/idris2-boot
Stiopa Koltsov d56efff0a7 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
```
2021-01-21 12:36:39 +00:00

21 lines
427 B
Bash
Executable File
Vendored

#!/bin/sh
case `uname -s` in
OpenBSD|FreeBSD|NetBSD)
DIR="`grealpath $0`"
;;
*)
DIR="`realpath $0`"
;;
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" "$@"