accurately handle $_ZL_NO_CHECK

This commit is contained in:
skywind3000 committed 2019-02-08 01:25:26 +08:00
1 parent ec2a9c251e
commit 67c18888d2
1 file changed
+2 -1
+2 -1
View File
@@ -1125,7 +1125,8 @@ function z_add(path)
end
local H = os.getenv('HOME')
local M = data_load(DATA_FILE)
if not os.getenv('_ZL_NO_CHECK') then
local nc = os.getenv('_ZL_NO_CHECK')
if nc ~= nil and nc ~= '' then
M = data_filter(M)
end
-- insert paths