Fixed a bug with "grunt publish"; was using the wrong paths

This commit is contained in:
Ian Gilman 2013-02-27 10:36:19 -08:00
parent d2b9257bc4
commit 6b492f395d

View File

@ -135,7 +135,11 @@ module.exports = function(grunt) {
// Copies the contents of the build folder into ../site-build. // Copies the contents of the build folder into ../site-build.
grunt.registerTask("copy:release", function() { grunt.registerTask("copy:release", function() {
grunt.file.recurse("build", function(abspath, rootdir, subdir, filename) { 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);
}); });
}); });