1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-04-19 05:11:27 +00:00

accurately handle $_ZL_NO_CHECK

This commit is contained in:
skywind3000
2019-02-08 01:25:26 +08:00
parent ec2a9c251e
commit 67c18888d2

3
z.lua
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