fix: pwsh (PowerShell) typo

This commit is contained in:
leo 2024-06-24 19:15:26 +08:00
parent 0a4723db74
commit 989e359a5a
No known key found for this signature in database

View file

@ -149,7 +149,7 @@ namespace SourceGit.Native
break; break;
case Models.Shell.PowerShell: case Models.Shell.PowerShell:
startInfo.FileName = ChoosePowerShell(); startInfo.FileName = ChoosePowerShell();
startInfo.Arguments = startInfo.FileName.EndsWith("pswd.exe") ? $"-WorkingDirectory \"{workdir}\" -Nologo" : "-Nologo"; startInfo.Arguments = startInfo.FileName.EndsWith("pwsh.exe") ? $"-WorkingDirectory \"{workdir}\" -Nologo" : "-Nologo";
break; break;
case Models.Shell.CommandPrompt: case Models.Shell.CommandPrompt:
startInfo.FileName = "cmd"; startInfo.FileName = "cmd";