diff --git a/lib/commands/update.js b/lib/commands/update.js index 31d49e419..d8497676d 100644 --- a/lib/commands/update.js +++ b/lib/commands/update.js @@ -97,6 +97,16 @@ module.exports.execute = function execute(version, options) { }, { title: 'Linking things', task: tasks.link + }, { + title: 'Installing new version of Casper', + task: (ctx) => { + let casperPath = path.join(process.cwd(), 'content', 'themes', 'casper'); + + return fs.remove(casperPath).then(() => fs.move( + path.join(ctx.installPath, 'content', 'themes', 'casper'), + casperPath + )); + } }, { title: 'Restarting Ghost', task: () => startCommand.execute.call(this, {quiet: true})