mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Only delete file if it exists
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user