Skip to content

Commit

Permalink
Use !RuntimeInformation.IsOSPlatform(OSPlatform.Windows) when decidin…
Browse files Browse the repository at this point in the history
…g whether or not to use sudo dotnet commands
  • Loading branch information
jstedfast committed Feb 14, 2023
1 parent 5291fe7 commit 157dea0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public Task<bool> RunDotnetCommandAsync(IUpgradeContext context, string argument

string command = "dotnet";

if (requiresAdmin && RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
if (requiresAdmin && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
arguments = $"dotnet {arguments}";
command = "sudo";
Expand Down

0 comments on commit 157dea0

Please sign in to comment.