diff --git a/tasks/update-atom-shell-task.coffee b/tasks/update-atom-shell-task.coffee index 29445dbc9..fbd70343b 100644 --- a/tasks/update-atom-shell-task.coffee +++ b/tasks/update-atom-shell-task.coffee @@ -65,10 +65,10 @@ module.exports = (grunt) -> grunt.registerTask 'update-atom-shell', 'Update atom-shell', -> done = @async() {atomShellVersion} = grunt.file.readJSON('package.json') - currentAtomShellVersion = getAtomShellVersion() if atomShellVersion atomShellVersion = "v#{atomShellVersion}" - if atomShellVersion isnt getAtomShellVersion() + currentAtomShellVersion = getAtomShellVersion() + if atomShellVersion isnt currentAtomShellVersion if isAtomShellVersionCached(atomShellVersion) grunt.log.writeln("Installing cached atom-shell #{atomShellVersion.cyan}") installAtomShell(atomShellVersion)