Fix lib caching

pull/310/head
Frostebite 2021-12-27 20:06:30 +00:00
parent fc8ebaa5a1
commit 5c90988bb9
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -669,7 +669,7 @@ class SetupRemoteRepository {
cloud_runner_logger_1.default.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
process.chdir(libraryCacheFolder);
yield remote_client_system_1.RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
if (latestLibraryCacheFile !== '') {
if (fs_1.default.existsSync(latestLibraryCacheFile)) {
cloud_runner_logger_1.default.logCli(`Library cache exists`);
yield remote_client_system_1.RemoteClientSystem.Run(`unzip -q "${latestLibraryCacheFile}" -d "${cloud_runner_state_1.CloudRunnerState.libraryFolderFull}"`);
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -134,7 +134,7 @@ export class SetupRemoteRepository {
CloudRunnerLogger.logCli(`Checking if Library cache ${libraryCacheFolder}/${latestLibraryCacheFile} exists`);
process.chdir(libraryCacheFolder);
await RemoteClientSystem.Run(`ls -lh "${libraryCacheFolder}"`);
if (latestLibraryCacheFile !== '') {
if (fs.existsSync(latestLibraryCacheFile)) {
CloudRunnerLogger.logCli(`Library cache exists`);
await RemoteClientSystem.Run(`unzip -q "${latestLibraryCacheFile}" -d "${CloudRunnerState.libraryFolderFull}"`);
} else {