Skip to content

Commit 26d2023

Browse files
committed
Use absolute mv in detached pipe fixture
1 parent 0351fe5 commit 26d2023

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎CodexSharpSDK.Tests/Unit/CliInstallationTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function writeProcessId(filePath) {
9494
}
9595
if (fs.existsSync(path.join(__dirname, 'pipe-holder'))) {
9696
const { spawn } = require('node:child_process');
97-
const childScript = 'printf "%s" "$$" > "$1.tmp" && mv "$1.tmp" "$1" && exec /bin/sleep 60';
97+
const childScript = 'printf "%s" "$$" > "$1.tmp" && /bin/mv "$1.tmp" "$1" && exec /bin/sleep 60';
9898
const holder = spawn(SETSID_PATH_LITERAL, ['/bin/sh', '-c', childScript, 'holder',
9999
path.join(__dirname, 'pipe-holder.pid')], { detached: true, stdio: 'inherit' });
100100
holder.unref();

0 commit comments

Comments
 (0)