nixpkgs/pkgs/development/interpreters/guile/setup-hook.sh
Jan Tojnar 2a85ee83b2
guile: fix unbound variable in setup-hook
For compat with set -u
2019-11-20 05:12:13 +01:00

9 lines
212 B
Bash

addGuileLibPath () {
if test -d "$1/share/guile/site"
then
export GUILE_LOAD_PATH="${GUILE_LOAD_PATH-}${GUILE_LOAD_PATH:+:}$1/share/guile/site"
fi
}
addEnvHooks "$hostOffset" addGuileLibPath