diff --git a/internal/cnf/bash_test.go b/internal/cnf/bash_test.go index 5ab3586..c7097a2 100644 --- a/internal/cnf/bash_test.go +++ b/internal/cnf/bash_test.go @@ -165,6 +165,7 @@ func TestBashSetCreateEncode(t *testing.T) { encoded string }{ {"ignore=xxx;\n", "key", `"newvalue"`, "ignore=xxx;\nkey=\"newvalue\";\n"}, + {"#!/bin/bash\n\nfunc(){\n\techo \"something\";\n}\nignore=xxx;\n", "key", `"newvalue"`, "#!/bin/bash\nfunc(){\n\techo \"something\";\n}\nignore=xxx;\nkey=\"newvalue\";\n"}, } for i, test := range tests {