Fix issue with shell commands containing "<>" and unecessary (and poor) escaping

This commit is contained in:
Ian Fijolek
2020-01-07 10:37:53 -08:00
parent 0269ad3512
commit 3226be69e7
3 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ func TestMultiLineConfig(t *testing.T) {
log.Println("-----")
log.Println("TestMultiLineConfig(parse > string)")
expected := "echo 'Some string with stuff'; echo '<angle brackets>'; exit 1\n"
expected := "echo 'Some string with stuff'; echo \"<angle brackets>\"; exit 1\n"
actual := config.Monitors[0].CommandShell
if expected != actual {
t.Errorf("TestMultiLineConfig(>) failed")