summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-06-10 10:02:10 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-06-10 10:02:10 +0200
commit0226b596b39ea5d055dc37ea0609b67b64fe3d75 (patch)
treeb8e19522cb8e3a0683da0db73b23e40b5d6a9437 /scripts
parent0aa14799b67298a50dd2c31c249622915e103994 (diff)
downloadcontext-0226b596b39ea5d055dc37ea0609b67b64fe3d75.tar.gz
2020-06-09 18:55:00
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-scite.lua4
1 files changed, 2 insertions, 2 deletions
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