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
|
if [[ ! -d "$topDir" ]]; then return; fi
|
||||||
|
|
||||||
# export only if we haven't already got this dir in the search path
|
# 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}"
|
export "${varName}=${!varName:+${!varName};}${absPattern}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user