Fix lists of paths in posix environment (#7034)

Empty paths in a colon separated list would be considered as the current
directory, so have to ensure $PATH and $LD_LIBRARY_PATH are not empty
before separating it with :
This commit is contained in:
Dennis Felsing 2018-01-08 10:49:00 +01:00 • committed by Andreas Rumpf
commit 5492190bc6
6 changed files with 7 additions and 7 deletions

View file

@ -8,7 +8,7 @@ stages:
.linux_set_path: &linux_set_path_def
before_script:
- export PATH=$(pwd)/bin:$PATH
- export PATH=$(pwd)/bin${PATH:+:$PATH}
tags:
- linux