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");