Skip to content

Commit

Permalink
Merge pull request #178 from h0x0er/issue173
Browse files Browse the repository at this point in the history
Add bug fix
  • Loading branch information
varunsh-coder committed Sep 14, 2022
2 parents 3ede151 + 86ca0ce commit 4f7a173
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dist/post/index.js
Expand Up @@ -61494,12 +61494,17 @@ var cleanup_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _
});
console.log("Service log:");
console.log(journalLog);
}
try {
const cmd = "sudo";
const args = ["cp", external_path_default().join(__dirname, "cache.txt"), cacheFile];
external_child_process_.execFileSync(cmd, args);
const cacheResult = yield cache.saveCache([cacheFile], cacheKey);
console.log(cacheResult);
}
catch (exception) {
console.log(exception);
}
}))();
function sleep(ms) {
return new Promise((resolve) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/cleanup.ts
Expand Up @@ -66,14 +66,18 @@ import path from "path";
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
encoding: "utf8",
});

console.log("Service log:");
console.log(journalLog);

}
try {
const cmd = "sudo";
const args = ["cp", path.join(__dirname, "cache.txt"), cacheFile];
cp.execFileSync(cmd, args);
const cacheResult = await cache.saveCache([cacheFile], cacheKey);
console.log(cacheResult);
} catch (exception) {
console.log(exception);
}
})();

Expand Down

0 comments on commit 4f7a173

Please sign in to comment.