Logging improvement

pull/310/head
Frostebite 2021-12-28 01:45:51 +00:00
parent 67fc632a13
commit d2eaa6737f
3 changed files with 3 additions and 1 deletions

1
dist/index.js vendored
View File

@ -489,6 +489,7 @@ class Caching {
else {
cacheSelection = latest;
}
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${cacheFolder}`);
if (fs_1.default.existsSync(cacheSelection)) {
yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
cloud_runner_logger_1.default.logCli(`cache item exists`);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -40,6 +40,7 @@ export class Caching {
} else {
cacheSelection = latest;
}
await CloudRunnerAgentSystem.Run(`tree ${cacheFolder}`);
if (fs.existsSync(cacheSelection)) {
await CloudRunnerAgentSystem.Run(`tree ${destinationFolder}`);
CloudRunnerLogger.logCli(`cache item exists`);