mirror of https://github.com/Hilbis/Hilbish
fix: check if key in _G is string before trying to getenv
parent
959030f70d
commit
ee34ccdbc3
|
@ -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,
|
||||
|
||||
|
|
Loading…
Reference in New Issue