@@ -474,22 +474,22 @@ private string BuildContainerStartupCommand(
474474 Func < string , string > nodeSetInterval ,
475475 Func < string , string > useDoubleQuotes )
476476 {
477- string sleepCommand ;
477+ string startupCommand ;
478478
479479 if ( useNode24ToStartContainer )
480480 {
481- sleepCommand = $ "'{ node24ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode24 } ' && { nodeSetInterval ( node24ContainerPath ) } || '{ node20ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode20 } ' && { nodeSetInterval ( node20ContainerPath ) } || '{ node16ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode16 } ' && { nodeSetInterval ( node16ContainerPath ) } || echo '{ labelContainerStartupFailed } '";
481+ startupCommand = $ "'{ node24ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode24 } ' && { nodeSetInterval ( node24ContainerPath ) } || '{ node20ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode20 } ' && { nodeSetInterval ( node20ContainerPath ) } || '{ node16ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode16 } ' && { nodeSetInterval ( node16ContainerPath ) } || echo '{ labelContainerStartupFailed } '";
482482 }
483483 else if ( useNode20ToStartContainer )
484484 {
485- sleepCommand = $ "'{ node20ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode20 } ' && { nodeSetInterval ( node20ContainerPath ) } || '{ node16ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode16 } ' && { nodeSetInterval ( node16ContainerPath ) } || echo '{ labelContainerStartupFailed } '";
485+ startupCommand = $ "'{ node20ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode20 } ' && { nodeSetInterval ( node20ContainerPath ) } || '{ node16ContainerPath } ' --version && echo '{ labelContainerStartupUsingNode16 } ' && { nodeSetInterval ( node16ContainerPath ) } || echo '{ labelContainerStartupFailed } '";
486486 }
487487 else
488488 {
489- sleepCommand = nodeSetInterval ( nodeContainerPath ) ;
489+ startupCommand = nodeSetInterval ( nodeContainerPath ) ;
490490 }
491491
492- return PlatformUtil . RunningOnWindows ? $ "cmd.exe /c call { useDoubleQuotes ( sleepCommand ) } " : $ "bash -c \" { sleepCommand } \" ";
492+ return PlatformUtil . RunningOnWindows ? $ "cmd.exe /c call { useDoubleQuotes ( startupCommand ) } " : $ "bash -c \" { startupCommand } \" ";
493493 }
494494
495495 private async Task < bool > WaitForContainerStartupAsync (
@@ -679,7 +679,7 @@ string useDoubleQuotes(string value)
679679 {
680680 useAgentNode = true ;
681681
682- string sleepCommand = BuildContainerStartupCommand (
682+ string startupCommand = BuildContainerStartupCommand (
683683 useNode24ToStartContainer ,
684684 useNode20ToStartContainer ,
685685 node24ContainerPath ,
@@ -693,7 +693,7 @@ string useDoubleQuotes(string value)
693693 nodeSetInterval ,
694694 useDoubleQuotes ) ;
695695
696- container . ContainerCommand = sleepCommand ;
696+ container . ContainerCommand = startupCommand ;
697697 container . ResultNodePath = nodeContainerPath ;
698698 }
699699 }
0 commit comments