Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 8b13231

Browse files
Mikhail Brelmadetara
Mikhail Brel
authored andcommitted
Using single quotes on Unix
1 parent 855d0fb commit 8b13231

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Common/ShellRunner.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ private bool NeedRunAgain(RetryStrategy retryStrategy, int exitCode)
118118
public int RunOnce(string commandWithArguments, string workingDirectory, TimeSpan timeout)
119119
{
120120
BeforeRun();
121-
startInfo.Arguments = startInfo.Arguments + "\"" + commandWithArguments + "\"";
121+
var quote = Helper.OsIsUnix() ? '\'' : '"';
122+
startInfo.Arguments = startInfo.Arguments + quote + commandWithArguments + quote;
122123
startInfo.WorkingDirectory = workingDirectory;
123124

124125
var sw = Stopwatch.StartNew();

0 commit comments

Comments
 (0)