Skip to content

Commit

Permalink
Check if env var is empty (if it does exists but unset)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpovel committed Oct 30, 2020
1 parent c5ca06d commit cb72c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lua/envvar_newcommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ local macros_to_envvars = {

for macro_name, env_var in pairs(macros_to_envvars) do
local content = os.getenv(env_var)
if content == nil then
if content == nil or content == "" then
content = missing
end
--[[
Expand Down

0 comments on commit cb72c40

Please sign in to comment.