From 47c7aa0361fec7708fae95c19a5cf8063d1a5df4 Mon Sep 17 00:00:00 2001 From: Thanabodee Charoenpiriyakij Date: Tue, 2 Jul 2019 01:42:00 +0700 Subject: Fix echo not interpret \n in GoTest.sh (#5426) When running GoTest.sh, the last step that checking go format files are print \n instead of new line: These files are not well gofmt'ed:\n\nMyGame/Example/Color.go MyGame/Example/MonsterStorage_grpc.go This changes fix it by echo NOT_FMT_FILES in separate line. --- tests/GoTest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/GoTest.sh b/tests/GoTest.sh index f50b91df..e69f0d8c 100755 --- a/tests/GoTest.sh +++ b/tests/GoTest.sh @@ -67,7 +67,9 @@ fi NOT_FMT_FILES=$(gofmt -l MyGame) if [[ ${NOT_FMT_FILES} != "" ]]; then - echo "These files are not well gofmt'ed:\n\n${NOT_FMT_FILES}" + echo "These files are not well gofmt'ed:" + echo + echo "${NOT_FMT_FILES}" # enable this when enums are properly formated # exit 1 fi -- cgit v1.2.3