2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 11:13:24 +00:00

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

This commit is contained in:
TorchedSammy 2022-09-17 10:48:34 -04:00
parent 959030f70d
commit ee34ccdbc3
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

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