nixpkgs/pkgs/development/libraries/dleyna-core/setup-hook.sh
Jan Tojnar 7429f5fe9b
dleyna-core: fix setup hook
For compatibility with set -u.
2019-11-20 03:57:43 +01:00

9 lines
264 B
Bash

addDleynaConnectorPath () {
if test -d "$1/lib/dleyna-1.0/connectors"
then
export DLEYNA_CONNECTOR_PATH="${DLEYNA_CONNECTOR_PATH-}${DLEYNA_CONNECTOR_PATH:+:}$1/lib/dleyna-1.0/connectors"
fi
}
addEnvHooks "$targetOffset" addDleynaConnectorPath