diff --git a/package.json b/package.json index 8b09c05..2a5f1a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aemsync", - "version": "2.0.0", + "version": "2.0.1", "description": "Adobe AEM Synchronization Tool", "author": "Michal Kochel ", "keywords": [ diff --git a/src/watcher.js b/src/watcher.js index 9481c37..893637d 100644 --- a/src/watcher.js +++ b/src/watcher.js @@ -13,7 +13,7 @@ class Watcher { log.debug('Changed:', localPath) // Skip excluded. - if (exclude && mm(exclude, localPath)) { + if (exclude && mm([localPath], exclude).length > 0) { return }