fix: check if key in _G is string before trying to getenv

pull/207/head
TorchedSammy 2022-09-17 10:48:34 -04:00
parent 959030f70d
commit ee34ccdbc3
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ do
return got_virt
end
if type(key) == 'string' then
virt_G[key] = os.getenv(key)
end
return virt_G[key]
end,