summaryrefslogtreecommitdiff
path: root/script/workspace/workspace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/workspace/workspace.lua')
-rw-r--r--script/workspace/workspace.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 10e4b2c9..fc6e90bd 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -144,16 +144,18 @@ function m.getLibraryMatchers()
end
m.libraryMatchers = {}
for path, pattern in pairs(librarys) do
- local nPath = fs.absolute(fs.path(path)):string()
- local matcher = glob.gitignore(pattern, m.matchOption)
- if platform.OS == 'Windows' then
- matcher:setOption 'ignoreCase'
+ if fs.exists(fs.path(path)) then
+ local nPath = fs.absolute(fs.path(path)):string()
+ local matcher = glob.gitignore(pattern, m.matchOption)
+ if platform.OS == 'Windows' then
+ matcher:setOption 'ignoreCase'
+ end
+ log.debug('getLibraryMatchers', path, nPath)
+ m.libraryMatchers[#m.libraryMatchers+1] = {
+ path = nPath,
+ matcher = matcher
+ }
end
- log.debug('getLibraryMatchers', path, nPath)
- m.libraryMatchers[#m.libraryMatchers+1] = {
- path = nPath,
- matcher = matcher
- }
end
m.libraryVersion = config.version