mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Look for version file to determine if cached
This guards against the directory being created but extraction previously failing.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user