Skip to content

Commit

Permalink
fix: Error when running build command on windows systems (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
JCHacking committed Oct 10, 2023
1 parent 3171b5d commit 2553657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion semantic_release/cli/commands/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def shell(cmd: str, *, check: bool = True) -> subprocess.CompletedProcess:
if not shell:
raise TypeError("'shell' is None")

return subprocess.run([shell, "-c", cmd], check=check) # noqa: S603
return subprocess.run([shell, "-c" if shell != "cmd" else "/c", cmd], check=check) # noqa: S603


@click.command(
Expand Down

0 comments on commit 2553657

Please sign in to comment.