From 1724385ca1c204cfb0e14724c7c44e6630e57fec Mon Sep 17 00:00:00 2001 From: Salman Chishti Date: Sun, 27 Jul 2025 22:02:55 +0100 Subject: [PATCH] Update src/Test/L0/Listener/ShellScriptSyntaxL0.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/Test/L0/Listener/ShellScriptSyntaxL0.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test/L0/Listener/ShellScriptSyntaxL0.cs b/src/Test/L0/Listener/ShellScriptSyntaxL0.cs index f5ea5fd4f..26aec1cfb 100644 --- a/src/Test/L0/Listener/ShellScriptSyntaxL0.cs +++ b/src/Test/L0/Listener/ShellScriptSyntaxL0.cs @@ -158,7 +158,7 @@ namespace GitHub.Runner.Common.Tests.Listener // Assert // 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 int nodeVersionCheckLines = 0;