Skip to content

Commit

Permalink
change loop to start at 0 instead of 1
Browse files Browse the repository at this point in the history
benhoIIand#243

This change fixed this ^ issue for me and started altering .html files in subfolders.
  • Loading branch information
Taelkir authored Feb 21, 2019
1 parent 16ddb40 commit 21b9602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/cachebust.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module.exports = function(grunt) {
];
// find relative paths for shared dirs
var originalDirParts = path.dirname(original).split('/');
for (var i = 1; i <= fileDepth; i++) {
for (var i = 0; i <= fileDepth; i++) {
var fileDir = originalDirParts.slice(0, i).join('/');
var baseDir = baseDirs.slice(0, i).join('/');
if (fileDir === baseDir) {
Expand Down

0 comments on commit 21b9602

Please sign in to comment.