We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7056432 commit ce2d22fCopy full SHA for ce2d22f
src/env.lua
@@ -2,11 +2,11 @@
2
-- Learn more at https://github.com/Wolfyxon/lover/wiki/Constants
3
4
os = os or {}
5
+os._getenv = os.getenv or function() end
6
-local originalGetEnv = os.getenv or function () end
7
local loverConsts = {}
8
9
function os.getenv(varname)
10
- return loverConsts[varname] or originalGetEnv(varname)
+ return loverConsts[varname] or os._getenv(varname)
11
end
12
0 commit comments