From da0af11bbbded79bde455db82a7ca24b4d596f8d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 30 May 2013 11:19:45 -0700 Subject: [PATCH] Only delete file if it exists --- Gruntfile.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 28bbdc3cf..17dc805a2 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -53,7 +53,8 @@ module.exports = (grunt) -> grunt.log.writeln("Copied #{source.cyan} to #{destination.cyan}.") mkdir = (args...) -> grunt.file.mkdir(args...) - rm = (args...) -> grunt.file.delete(args..., force: true) + rm = (args...) -> + grunt.file.delete(args..., force: true) if grunt.file.exists(args...) grunt.initConfig pkg: grunt.file.readJSON('package.json')