mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
lua-5 setup hook: LUA_PATH and LUA_CPATH can be undefined
This commit is contained in:
parent
0b90a7f67f
commit
aaf0fd2c44
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ addToLuaSearchPathWithCustomDelimiter() {
|
|||
if [[ ! -d "$topDir" ]]; then return; fi
|
||||
|
||||
# export only if we haven't already got this dir in the search path
|
||||
if [[ ${!varName} == *"$absPattern"* ]]; then return; fi
|
||||
if [[ ${!varName-} == *"$absPattern"* ]]; then return; fi
|
||||
|
||||
export "${varName}=${!varName:+${!varName};}${absPattern}"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue