From 9590fc444a7c842d3c1ebc8e3f0e92bbdc4a146e Mon Sep 17 00:00:00 2001
From: Danny McCormick <damccorm@microsoft.com>
Date: Mon, 8 Jul 2019 13:47:42 -0400
Subject: [PATCH] Update tool-cache.js

---
 node_modules/@actions/tool-cache/lib/tool-cache.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/node_modules/@actions/tool-cache/lib/tool-cache.js b/node_modules/@actions/tool-cache/lib/tool-cache.js
index eb924d7..acf706a 100644
--- a/node_modules/@actions/tool-cache/lib/tool-cache.js
+++ b/node_modules/@actions/tool-cache/lib/tool-cache.js
@@ -30,7 +30,7 @@ const IS_WINDOWS = process.platform === 'win32';
 const userAgent = 'actions/tool-cache';
 // On load grab temp directory and cache directory and remove them from env (currently don't want to expose this)
 let tempDirectory = process.env['RUNNER_TEMPDIRECTORY'] || '';
-let cacheRoot = process.env['RUNNER_TOOLSDIRECTORY'] || '';
+let cacheRoot = process.env['AGENT_TOOLSDIRECTORY'] || process.env['RUNNER_TOOLSDIRECTORY'] || '';
 // If directories not found, place them in common temp locations
 if (!tempDirectory || !cacheRoot) {
     let baseLocation;
@@ -433,4 +433,4 @@ function _evaluateVersions(versions, versionSpec) {
     }
     return version;
 }
-//# sourceMappingURL=tool-cache.js.map
\ No newline at end of file
+//# sourceMappingURL=tool-cache.js.map