Only delete file if it exists

This commit is contained in:
Kevin Sawicki
2013-05-30 11:19:45 -07:00
parent 04b8ab1b87
commit da0af11bbb

View File

@@ -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')