@@ -28,9 +28,9 @@ const buildDockerCmd = (cmd, scriptsDir, dockerBin) => {
2828 case 'darwin' :
2929 return [ 'open' , MACOS_BASE ] ;
3030 case 'linux' :
31- case 'wsl' :
3231 return [ path . join ( scriptsDir , `docker-engine-${ cmd } .sh` ) ] ;
3332 case 'win32' :
33+ case 'wsl' :
3434 return [ 'powershell.exe' , '-ExecutionPolicy' , 'Bypass' , '-File' , `"${ windowsStartScript } "` ] ;
3535 }
3636} ;
@@ -107,12 +107,12 @@ module.exports = class LandoDaemon {
107107 await require ( '../utils/run-command' ) ( 'open' , [ MACOS_BASE ] , { debug : this . debug } ) ;
108108 break ;
109109 case 'linux' :
110- case 'wsl' :
111110 const lscript = path . join ( this . scriptsDir , 'docker-engine-start.sh' ) ;
112111 if ( password ) await require ( '../utils/run-elevated' ) ( [ lscript ] , { debug, password} ) ;
113112 else await require ( '../utils/run-command' ) ( lscript , { debug} ) ;
114113 break ;
115114 case 'win32' :
115+ case 'wsl' :
116116 const wscript = path . join ( this . scriptsDir , 'docker-desktop-start.ps1' ) ;
117117 await require ( '../utils/run-powershell-script' ) ( wscript , undefined , { debug : this . debug } ) ;
118118 await require ( 'delay' ) ( 2000 ) ;
@@ -226,10 +226,10 @@ module.exports = class LandoDaemon {
226226 case 'darwin' :
227227 return getMacProp ( 'CFBundleShortVersionString' ) . then ( version => ( { ...versions , desktop : version } ) ) ;
228228 case 'linux' :
229- case 'wsl' :
230229 const cmd = [ `"${ this . docker } "` , 'version' , '--format' , '{{.Server.Version}}' ] ;
231230 return shell . sh ( cmd ) . catch ( ( ) => '18.0.0' ) . then ( version => ( { ...versions , engine : version } ) ) ;
232231 case 'win32' :
232+ case 'wsl' :
233233 const componentsVersionFile = this . platform === 'win32'
234234 ? path . resolve ( getDockerBinPath ( 'win32' ) , '..' , 'componentsVersion.json' ) : '/Docker/host/componentsVersion.json' ;
235235
0 commit comments