Update src/Test/L0/Listener/ShellScriptSyntaxL0.cs

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Salman Chishti
2025-07-27 22:02:55 +01:00
committed by GitHub
co-authored by Copilot
parent 0bc856255b
commit 1724385ca1
+1 -1
View File
@@ -158,7 +158,7 @@ namespace GitHub.Runner.Common.Tests.Listener
// Assert // Assert
// 1. Check that $restartinteractiverunner is correctly referenced with $ in if condition // 1. Check that $restartinteractiverunner is correctly referenced with $ in if condition
Assert.Contains("if [[ \"$currentplatform\" == 'darwin' && $restartinteractiverunner -eq 0 ]];", template); Assert.Contains("if [[ \"$currentplatform\" == 'darwin' && $restartinteractiverunner -eq 0 ]];\nthen", template);
// 2. Check for proper nesting of if statements for node version checks // 2. Check for proper nesting of if statements for node version checks
int nodeVersionCheckLines = 0; int nodeVersionCheckLines = 0;