Wildcards are allowed to match no files now.

This commit is contained in:
David Given 2016-08-20 12:40:00 +02:00
parent 46bd70380c
commit 23e8d5af5a

View file

@ -427,7 +427,7 @@ loadtarget = function(targetname)
if targetname:find("[?*]") then if targetname:find("[?*]") then
files = posix.glob(targetname) files = posix.glob(targetname)
if not files then if not files then
error(string.format("glob '%s' matches no files", targetname)) files = {}
end end
else else
files = {targetname} files = {targetname}