This commit is contained in:
pucketm2016 committed 2026-06-25 12:54:29 -05:00
1 parent 56e34475fc
commit 6c6514e70f
4 files changed
+101 -31

No files matched your search

+2 -2
View File
@@ -149,11 +149,11 @@ async function runHost(jobId, script, host, executionContext) {
return;
}
const secret = decryptSecret(host);
const wrapper = buildWrapper(script.content, host, executionContext);
const file = path.join(os.tmpdir(), `poshmanager-${jobId}-${host.id}.ps1`);
try {
const secret = decryptSecret(host);
const wrapper = buildWrapper(script.content, host, executionContext);
await fs.writeFile(file, wrapper, { mode: 0o600 });
await spawnPowerShell(jobId, host, file, secret, executionContext);
} catch (error) {