Skip to content

Commit fc51482

Browse files
committed
wait for spawned process to exit
1 parent 3a7d6de commit fc51482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easyWSLcmd/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
Console.WriteLine("Combining layers");
4343
await downloader.CombineLayers();
4444
Console.WriteLine("Registering distro");
45-
Process.Start("wsl.exe", new[] { $"--import", name, output.FullName, Path.Combine(tempPath, "install.tar.bz") });
45+
Process.Start("wsl.exe", new[] { $"--import", name, output.FullName, Path.Combine(tempPath, "install.tar.bz") }).WaitForExit();
4646
}, distroName, imageName, outputPath);
4747

4848
return await rootCommand.InvokeAsync(args);

0 commit comments

Comments
 (0)