From 0226b596b39ea5d055dc37ea0609b67b64fe3d75 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 10 Jun 2020 10:02:10 +0200 Subject: 2020-06-09 18:55:00 --- scripts/context/lua/mtx-scite.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/context/lua') diff --git a/scripts/context/lua/mtx-scite.lua b/scripts/context/lua/mtx-scite.lua index 96020de3d..b5360770e 100644 --- a/scripts/context/lua/mtx-scite.lua +++ b/scripts/context/lua/mtx-scite.lua @@ -251,11 +251,11 @@ function scripts.scite.tree() local source = environment.argument("source") local target = environment.argument("target") local numbers = environment.argument("numbers") - if not lfs.isdir(source) then + if not source or not lfs.isdir(source) then report("you need to pass a valid source path with --source") return end - if not lfs.isdir(target) then + if not target or not lfs.isdir(target) then report("you need to pass a valid target path with --target") return end -- cgit v1.2.3