Fix nested Library cache

pull/310/head
Frostebite 2022-01-08 22:09:01 +00:00
parent 3077fcd287
commit 36347f2129
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -591,7 +591,7 @@ class Caching {
console_1.assert(`${fs_1.default.existsSync(destinationFolder)}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`unzip -q ${cacheSelection}.zip -d ${path_1.default.basename(destinationFolder)}`);
process.chdir(path_1.default.basename(destinationFolder));
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv ./* ${destinationFolder}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv * ${destinationFolder}`);
}
else {
remote_client_logger_1.RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@ export class Caching {
assert(`${fs.existsSync(destinationFolder)}`);
await CloudRunnerSystem.Run(`unzip -q ${cacheSelection}.zip -d ${path.basename(destinationFolder)}`);
process.chdir(path.basename(destinationFolder));
await CloudRunnerSystem.Run(`mv ./* ${destinationFolder}`);
await CloudRunnerSystem.Run(`mv * ${destinationFolder}`);
} else {
RemoteClientLogger.logWarning(`cache item ${cacheKey} doesn't exist ${destinationFolder}`);
if (cacheSelection !== ``) {