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:
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…
x
Reference in New Issue
Block a user