mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 22:28:00 +00:00
lua-5 setup hook: LUA_PATH and LUA_CPATH can be undefined
This commit is contained in:
parent
0b90a7f67f
commit
aaf0fd2c44
@ -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 New Issue
Block a user