Skip to content

Commit 1e90b06

Browse files
Add fix for official build on Windows (#18456)
###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/18456)
1 parent 49c09c5 commit 1e90b06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Bicep.RpcClient/Helpers/BicepInstaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ private static void SetExecutablePermissions(
9393
string filePath,
9494
CancellationToken cancellationToken)
9595
{
96+
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
97+
{
98+
// No need to set executable permissions on Windows
99+
return;
100+
}
101+
96102
var chmod = new System.Diagnostics.Process
97103
{
98104
StartInfo = new System.Diagnostics.ProcessStartInfo

0 commit comments

Comments
 (0)