Permalink
Browse files

Switch include and exclude order

  • Loading branch information...
juriejan committed Mar 6, 2014
1 parent 71dcb6b commit 1117f2ce4368cea4c870658112293aeb480edbd0
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/rsyncwrapper.js
View
@@ -61,18 +61,18 @@ exports.rsync = function (options,callback) {
args.push("--verbose");
}
- if ( typeof options.exclude !== "undefined" && util.isArray(options.exclude) ) {
- options.exclude.forEach(function (value,index) {
- args.push("--exclude="+value);
- });
- }
-
if ( typeof options.include !== "undefined" && util.isArray(options.include) ) {
options.include.forEach(function (value,index) {
args.push("--include="+value);
});
}
+ if ( typeof options.exclude !== "undefined" && util.isArray(options.exclude) ) {
+ options.exclude.forEach(function (value,index) {
+ args.push("--exclude="+value);
+ });
+ }
+
switch ( options.compareMode ) {
case "sizeOnly":
args.push("--size-only");

0 comments on commit 1117f2c

Please sign in to comment.