Look for version file to determine if cached

This guards against the directory being created but extraction
previously failing.
This commit is contained in:
Kevin Sawicki
2013-09-05 21:11:55 -07:00
parent c24eec8205
commit 325438c532

View File

@@ -17,7 +17,7 @@ module.exports = (grunt) ->
getCachePath = (version) -> "/tmp/atom-cached-atom-shells/#{version}"
isAtomShellVersionCached = (version) ->
grunt.file.isDir(getCachePath(version))
grunt.file.isFile(getCachePath(version), 'version')
downloadAtomShell = (version, callback) ->
downloadUrl = "https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/#{version}/atom-shell-#{version}-darwin.zip"