import cli methods

pull/353/head
Frostebite 2022-04-08 21:53:52 +01:00
parent 762843eeba
commit fb9530048f
3 changed files with 1 additions and 7 deletions

3
dist/index.js vendored
View File

@ -2640,10 +2640,7 @@ class Caching {
if (fs_1.default.existsSync(destinationFolder)) {
fs_1.default.rmdirSync(destinationFolder, { recursive: true });
}
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`mv "${fullResultsFolder}/${path_1.default.basename(destinationFolder)}" "${destinationParentFolder}"`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls ${destinationFolder}`);
}
else {
remote_client_logger_1.RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -133,12 +133,9 @@ export class Caching {
if (fs.existsSync(destinationFolder)) {
fs.rmdirSync(destinationFolder, { recursive: true });
}
await CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
await CloudRunnerSystem.Run(
`mv "${fullResultsFolder}/${path.basename(destinationFolder)}" "${destinationParentFolder}"`,
);
await CloudRunnerSystem.Run(`ls ${destinationParentFolder}`);
await CloudRunnerSystem.Run(`ls ${destinationFolder}`);
} else {
RemoteClientLogger.logWarning(`cache item ${cacheArtifactName} doesn't exist ${destinationFolder}`);
if (cacheSelection !== ``) {