dleyna-core: fix setup hook

For compatibility with set -u.
This commit is contained in:
Jan Tojnar 2019-11-20 03:57:43 +01:00
parent 44083d9999
commit 7429f5fe9b
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,7 +1,7 @@
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"
export DLEYNA_CONNECTOR_PATH="${DLEYNA_CONNECTOR_PATH-}${DLEYNA_CONNECTOR_PATH:+:}$1/lib/dleyna-1.0/connectors"
fi
}