Delete existing asset before uploading new one

This commit is contained in:
Kevin Sawicki 2014-01-14 12:54:42 -08:00
parent 6ca3c90abe
commit 8374911dab

View File

@ -34,7 +34,9 @@ module.exports = (gruntObject) ->
return done(error) if error?
getAtomDraftRelease (error, release) ->
return done(error) if error?
uploadAsset(release, done)
deleteExistingAsset release, (error) ->
return done(error) if error?
uploadAsset(release, done)
logError = (message, error, details) ->
grunt.log.error(message)