Skip to content

Commit

Permalink
Return empty object if aws file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Earley committed Jul 2, 2013
1 parent 640cbb7 commit 7097b3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module.exports = (grunt) ->
version_tag = ->
"v#{version()}"
aws = ->
grunt.file.readJSON 'grunt-aws.json'
file = 'grunt-aws.json'
if grunt.file.exists file then grunt.file.readJSON file else {}

grunt.initConfig
pkg: grunt.file.readJSON("package.json")
Expand Down

0 comments on commit 7097b3e

Please sign in to comment.