File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
distrod/distrod_wsl_launcher/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ fn register_distribution<P: AsRef<Path>>(distro_name: &str, tar_gz_filename: P)
293293 . arg ( "wsl" )
294294 . arg ( "--import" )
295295 . arg ( distro_name)
296- . arg ( format ! ( "%LocalAppData%\\ {}" , distro_name) )
296+ . arg ( format ! ( "\" %LocalAppData%\\ {}\" " , distro_name) )
297297 . arg ( tar_gz_filename. as_ref ( ) ) ;
298298 let mut child = cmd
299299 . spawn ( )
@@ -305,7 +305,7 @@ fn register_distribution<P: AsRef<Path>>(distro_name: &str, tar_gz_filename: P)
305305 bail ! (
306306 "Failed: cmd.exe /C wsl --import {} {} {:#?}" ,
307307 distro_name,
308- format!( "%LocalAppData%\\ {}" , distro_name) ,
308+ format!( "\" %LocalAppData%\\ {}\" " , distro_name) ,
309309 tar_gz_filename. as_ref( )
310310 ) ;
311311 }
You can’t perform that action at this time.
0 commit comments