Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Aug 19, 2023
1 parent c5580f8 commit 2e9e9df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/model/cloud-runner/remote-client/remote-client-logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import path from 'node:path';
import CloudRunner from '../cloud-runner';
import CloudRunnerOptions from '../options/cloud-runner-options';
import { CloudRunnerSystem } from '../services/core/cloud-runner-system';
import { CloudRunnerFolders } from '../options/cloud-runner-folders';

export class RemoteClientLogger {
private static get LogFilePath() {
Expand Down Expand Up @@ -54,10 +55,9 @@ export class RemoteClientLogger {

let hashedLogs = fs.readFileSync(RemoteClientLogger.LogFilePath).toString();

const directory = process.cwd();
process.chdir('/home/');
hashedLogs = await CloudRunnerSystem.Run(`md5sum job-log.txt`);
process.chdir(directory);
process.chdir(CloudRunnerFolders.projectPathAbsolute);

for (let index = 0; index < 3; index++) {
CloudRunnerLogger.log(`LOGHASH: ${hashedLogs}`);
Expand Down

0 comments on commit 2e9e9df

Please sign in to comment.