1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-06-16 11:08:51 +00:00

accurately handle $_ZL_NO_CHECK

This commit is contained in:
skywind3000
2019-02-08 01:28:49 +08:00
parent 67c18888d2
commit 4e5a788e14
+1 -1
View File
@@ -1126,7 +1126,7 @@ function z_add(path)
local H = os.getenv('HOME')
local M = data_load(DATA_FILE)
local nc = os.getenv('_ZL_NO_CHECK')
if nc ~= nil and nc ~= '' then
if nc == nil or nc == '' or nc == '0' then
M = data_filter(M)
end
-- insert paths