mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-02 19:53:23 +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
|
return got_virt
|
||||||
end
|
end
|
||||||
|
|
||||||
virt_G[key] = os.getenv(key)
|
if type(key) == 'string' then
|
||||||
|
virt_G[key] = os.getenv(key)
|
||||||
|
end
|
||||||
return virt_G[key]
|
return virt_G[key]
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user