Skip to content

Commit

Permalink
fix: append if prepend set to false
Browse files Browse the repository at this point in the history
This just got lost during the refactoring.
  • Loading branch information
vojtajina committed Jul 9, 2013
1 parent a8dddb7 commit bdc5634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function (grunt) {
// generate changelog
changelog.generate(githubRepo, 'v' + newVersion).then(function(data) {
var currentLog = grunt.file.exists(options.dest) ? grunt.file.read(options.dest) : '';
grunt.file.write(options.dest, data + currentLog);
grunt.file.write(options.dest, options.prepend ? data + currentLog : currentLog + data);

if (options.editor) {
exec(options.editor + ' ' + options.dest, function(err) {
Expand Down

0 comments on commit bdc5634

Please sign in to comment.