Prefix the source with a space so as to ensure it doesn't show up in the history on github actions

This commit is contained in:
David Dworken 2022-11-11 19:06:00 -08:00
parent 7199a36a71
commit 85685a2431
No known key found for this signature in database

View File

@ -1859,7 +1859,7 @@ func captureTerminalOutputWithShellNameAndDimensions(t *testing.T, tester shellT
fullCommand += fmt.Sprintf(" tmux -u new-session -d -x %d -y %d -s foo %s\n", width, height, overriddenShellName)
fullCommand += " sleep 1\n"
if overriddenShellName == "bash" {
fullCommand += " tmux send -t foo source SPACE ~/.bashrc ENTER\n"
fullCommand += " tmux send -t foo SPACE source SPACE ~/.bashrc ENTER\n"
}
fullCommand += " sleep " + sleepAmount + "\n"
for _, cmd := range commands {