From 325438c532c9cda97bd53397dcbc38b6d512c373 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 5 Sep 2013 21:11:55 -0700 Subject: [PATCH] Look for version file to determine if cached This guards against the directory being created but extraction previously failing. --- tasks/update-atom-shell-task.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/update-atom-shell-task.coffee b/tasks/update-atom-shell-task.coffee index fbd70343b..0774fc33b 100644 --- a/tasks/update-atom-shell-task.coffee +++ b/tasks/update-atom-shell-task.coffee @@ -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"