From 2b3e7e631ecd784f4dca31f3cf6b655d0635403e Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sat, 30 May 2026 10:48:06 -0500 Subject: [PATCH] fix(cli): use resolved path and cross-platform devnull in release_publish Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) --- cli/release_publish.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/release_publish.php b/cli/release_publish.php index 1bf2c2e..37d5e81 100644 --- a/cli/release_publish.php +++ b/cli/release_publish.php @@ -135,7 +135,8 @@ if ($bumpType !== 'none') { // -- Step 2: Read version and set stability suffix -- echo "\n--- Step 2: Set version suffix ---\n"; $versionOutput = []; -exec("{$php} {$cli}/version_read.php --path " . escapeshellarg($path) . " 2>/dev/null", $versionOutput); +$devNull = PHP_OS_FAMILY === 'Windows' ? '2>NUL' : '2>/dev/null'; +exec("{$php} {$cli}/version_read.php --path " . escapeshellarg($resolvedPath) . " {$devNull}", $versionOutput); $version = trim($versionOutput[0] ?? ''); if (empty($version)) { fwrite(STDERR, "No version found\n");