Skip to content

Commit 1949399

Browse files
committed
Fix bug when supplying multiple file specs
If you specify multiple file specs and the first one sets move to false, it affects all subsequent ones even if you want them to have move = true.
1 parent 24d9134 commit 1949399

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/filerev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ module.exports = function (grunt) {
1313
length: 8
1414
});
1515
var target = this.target;
16-
var move = true;
1716
var filerev = grunt.filerev || {summary: {}};
1817

1918
eachAsync(this.files, function (el, i, next) {
19+
var move = true;
20+
2021
// If dest is furnished it should indicate a directory
2122
if (el.dest) {
2223
// When globbing is used, el.dest contains basename, we remove it

0 commit comments

Comments
 (0)