Skip to content

Commit 4a31d19

Browse files
author
contra
authored
closes #2122
1 parent 126423a commit 4a31d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/recipes/running-task-steps-per-folder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function getFolders(dir) {
3838

3939
gulp.task('scripts', function() {
4040
var folders = getFolders(scriptsPath);
41-
41+
if (folder.length === 0) return // nothing to do!
4242
var tasks = folders.map(function(folder) {
4343
return gulp.src(path.join(scriptsPath, folder, '/**/*.js'))
4444
// concat into foldername.js

0 commit comments

Comments
 (0)