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:
parent
e23ea64c41
commit
5492190bc6
6 changed files with 7 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ cd csources
|
|||
sh build.sh
|
||||
cd ..
|
||||
# Add Nim to the PATH
|
||||
export PATH=$(pwd)/bin:$PATH
|
||||
export PATH=$(pwd)/bin${PATH:+:$PATH}
|
||||
# Bootstrap.
|
||||
nim -v
|
||||
nim c koch
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ apt-get install -y -qq build-essential git libcurl4-openssl-dev libsdl1.2-dev li
|
|||
|
||||
gcc -v
|
||||
|
||||
export PATH=$(pwd)/bin:$PATH
|
||||
export PATH=$(pwd)/bin${PATH:+:$PATH}
|
||||
|
||||
# Nimble deps
|
||||
nim e install_nimble.nims
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue