diff --git a/libs/copydirSync.js b/libs/copydirSync.js
index <HASH>..<HASH> 100755
--- a/libs/copydirSync.js
+++ b/libs/copydirSync.js
@@ -14,6 +14,7 @@ function copydirSync(from, to, options) {
       filter: options
     };
   }
+  if(typeof options === 'undefined') options = {}
   if(typeof options.cover === 'undefined') {
     options.cover = true;
   }
@@ -95,4 +96,4 @@ function rewriteSync(f, options, stats, callback) {
   return true;
 }
 
-module.exports = copydirSync;
\ No newline at end of file
+module.exports = copydirSync;
Avoid failing when no options are provided

When no options are provided, next line fails checking for cover from undefined