diff options
author | Thanabodee Charoenpiriyakij <wingyminus@gmail.com> | 2019-07-02 01:42:00 +0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-07-01 11:42:00 -0700 |
commit | 47c7aa0361fec7708fae95c19a5cf8063d1a5df4 (patch) | |
tree | ad0c95b14be26e8abdcea0ac7864ad9cf7ce1bc3 | |
parent | 7a63792929e2ab6edbbc2b6270a48c74e7022f96 (diff) | |
download | flatbuffers-47c7aa0361fec7708fae95c19a5cf8063d1a5df4.tar.gz flatbuffers-47c7aa0361fec7708fae95c19a5cf8063d1a5df4.tar.bz2 flatbuffers-47c7aa0361fec7708fae95c19a5cf8063d1a5df4.zip |
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.
-rwxr-xr-x | tests/GoTest.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |