Skip to content

Commit

Permalink
配置梳理
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Nov 15, 2023
1 parent 88e8da3 commit 6221bef
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions script/basic/environ.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ end
function environ.driver(key)
local value = qgetenv(key)
if value then
local drivers = {}
local value1 = sgsub(value, " ", "")
local value2 = sgsub(value1, "\n", "")
local strs = ssplit(value2, ";")
for i, str in ipairs(strs) do
drivers[i] = parse_driver(str)
end
return drivers
return parse_driver(value)
end
end

0 comments on commit 6221bef

Please sign in to comment.