Skip to content

Commit ac21bfa

Browse files
authored
Fix unzip command in MacOS (#1077)
1 parent fbdabce commit ac21bfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/PuppeteerSharp/BrowserFetcher.cs

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,9 @@ private string GetFolderPath(int revision)
267267
private void NativeExtractToDirectory(string zipPath, string folderPath)
268268
{
269269
var process = new Process();
270+
270271
process.StartInfo.FileName = "unzip";
271-
process.StartInfo.Arguments = $"{zipPath} -d {folderPath}";
272+
process.StartInfo.Arguments = $"\"{zipPath}\" -d \"{folderPath}\"";
272273
process.Start();
273274
process.WaitForExit();
274275
}

0 commit comments

Comments
 (0)