Skip to content

Commit

Permalink
Fix for power shell script with arguments (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
npuvvada committed Sep 27, 2022
1 parent bf8be5a commit fe51695
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PsfLauncher/PsfPowershellScriptRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,16 @@ class PsfPowershellScriptRunner
std::wstring fixed4PowerShell = dequotedScriptPath; // EscapeFilenameForPowerShell(dequotedScriptPath);
if (dequotedScriptPath.is_absolute())
{
commandString.append(L"\"");
commandString.append(L"\'");
commandString.append(fixed4PowerShell);
commandString.append(L"\"");
commandString.append(L"\'");
}
else
{
commandString.append(L"\"");
commandString.append(L"\'");
commandString.append(L".\\");
commandString.append(fixed4PowerShell);
commandString.append(L"\"");
commandString.append(L"\'");
}

//Script arguments are optional.
Expand Down

0 comments on commit fe51695

Please sign in to comment.