Skip to content

Commit bf1d4a1

Browse files
authored
Fix generating RunTests.sh and RunTests.cmd scripts (#63875)
This fixes issue where generated RunTests.sh in the "To repro directly: " section contained unevaluated variables like RUNTIME_PATH, which prevented simple copy-pasting the code into the terminal
1 parent ae2f60c commit bf1d4a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tasks/installer.tasks/GenerateRunScript.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ private static string SanitizeEcho(string command, bool isUnix){
121121
// Escape backtick and question mark characters to avoid running commands instead of echo'ing them.
122122
string sanitizedRunCommand = command.Replace("`", "\\`")
123123
.Replace("?", "\\")
124-
.Replace("$", "")
125-
.Replace("%", "")
126124
.Replace("\r","")
127125
.Replace("\n"," ")
128126
.Replace("&", "^&")
@@ -138,4 +136,4 @@ private static string SanitizeEcho(string command, bool isUnix){
138136
return sanitizedRunCommand;
139137
}
140138
}
141-
}
139+
}

0 commit comments

Comments
 (0)