mirror of
https://github.com/step-security/harden-runner.git
synced 2026-06-08 13:47:10 +00:00
fixed bug
This commit is contained in:
parent
b5e2e1287b
commit
092c620898
1 changed files with 6 additions and 6 deletions
|
|
@ -66,15 +66,15 @@ import path from "path";
|
|||
var journalLog = cp.execSync("sudo journalctl -u agent.service", {
|
||||
encoding: "utf8",
|
||||
});
|
||||
|
||||
console.log("Service log:");
|
||||
console.log(journalLog);
|
||||
|
||||
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);
|
||||
}
|
||||
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);
|
||||
})();
|
||||
|
||||
function sleep(ms) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue