From 6b492f395d04ba5f512abbc195d19da72862e481 Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Wed, 27 Feb 2013 10:36:19 -0800 Subject: [PATCH] Fixed a bug with "grunt publish"; was using the wrong paths --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 5defac72..bd21d089 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -135,7 +135,11 @@ module.exports = function(grunt) { // Copies the contents of the build folder into ../site-build. grunt.registerTask("copy:release", function() { grunt.file.recurse("build", function(abspath, rootdir, subdir, filename) { - grunt.file.copy(abspath, "../site-build/" + (subdir || "") + filename); + var dest = "../site-build/" + + (subdir ? subdir + "/" : "") + + filename; + + grunt.file.copy(abspath, dest); }); });