From 092c620898695e2fcf3b1bf4729dd63746d61ac3 Mon Sep 17 00:00:00 2001 From: h0x0er Date: Wed, 14 Sep 2022 11:45:32 +0530 Subject: [PATCH] fixed bug --- src/cleanup.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cleanup.ts b/src/cleanup.ts index 36ad788..7071d18 100644 --- a/src/cleanup.ts +++ b/src/cleanup.ts @@ -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) {