diff options
| author | mayeut <mayeut@users.noreply.github.com> | 2015-09-12 03:13:45 +0200 |
|---|---|---|
| committer | mayeut <mayeut@users.noreply.github.com> | 2015-09-12 03:13:45 +0200 |
| commit | 79819087544a29a792eb43b99638da401b7430ac (patch) | |
| tree | ed9a27bf064e58c7f77304f29d578cbd262d635c /tools/travis-ci/run.sh | |
| parent | 9258f8f6a7019e785a0b8c6c593637d4a89bfbce (diff) | |
Fix unbound variable
Diffstat (limited to 'tools/travis-ci/run.sh')
| -rwxr-xr-x | tools/travis-ci/run.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/travis-ci/run.sh b/tools/travis-ci/run.sh index 36bcc0d4..65cc1c47 100755 --- a/tools/travis-ci/run.sh +++ b/tools/travis-ci/run.sh @@ -82,7 +82,11 @@ fi set -x if [ "${OPJ_NONCOMMERCIAL:-}" == "1" ] && [ -d kdu ]; then if [ "${TRAVIS_OS_NAME}" == "linux" ]; then - export LD_LIBRARY_PATH=${PWD}/kdu:${LD_LIBRARY_PATH} + if [ "${LD_LIBRARY_PATH:-}" == "" ]; then + export LD_LIBRARY_PATH=${PWD}/kdu + else + export LD_LIBRARY_PATH=${PWD}/kdu:${LD_LIBRARY_PATH} + fi fi export PATH=${PWD}/kdu:${PATH} fi |
