diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-11-05 19:50:42 -0500 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2019-11-08 13:24:20 -0500 |
commit | aaf0fd2c445d9d3bd686702d4b644d24ed3b10f3 (patch) | |
tree | c41c2651a0f1ca97571ebf4d76f29849e6f1005d | |
parent | 0b90a7f67f4df722a5c29773fcf8376d631f1fc8 (diff) |
lua-5 setup hook: LUA_PATH and LUA_CPATH can be undefined
-rw-r--r-- | pkgs/development/interpreters/lua-5/setup-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/lua-5/setup-hook.sh b/pkgs/development/interpreters/lua-5/setup-hook.sh index f7e56b62ac90..1c445b82afde 100644 --- a/pkgs/development/interpreters/lua-5/setup-hook.sh +++ b/pkgs/development/interpreters/lua-5/setup-hook.sh @@ -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}" } |