From 74bc508b74de400e21458cfccca103bad103f80f Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Wed, 26 Jun 2019 16:32:26 -0600 Subject: [PATCH] cp args --- 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 3e16f53f..041807be 100644 --- a/node_modules/@actions/tool-cache/lib/tool-cache.js +++ b/node_modules/@actions/tool-cache/lib/tool-cache.js @@ -273,7 +273,7 @@ function cacheDir(sourceDir, tool, version, arch) { // due to anti-virus software having an open handle on a file. for (const itemName of fs.readdirSync(sourceDir)) { const s = path.join(sourceDir, itemName); - shell.cp(s, destPath, '-r'); + shell.cp('-R', s, destPath); } // write .complete _completeToolPath(tool, version, arch); @@ -434,4 +434,4 @@ function _evaluateVersions(versions, versionSpec) { } return version; } -//# sourceMappingURL=tool-cache.js.map \ No newline at end of file +//# sourceMappingURL=tool-cache.js.map