Commit 47c7aa03 authored by Thanabodee Charoenpiriyakij's avatar Thanabodee Charoenpiriyakij Committed by Wouter van Oortmerssen

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.
parent 7a637929
...@@ -67,7 +67,9 @@ fi ...@@ -67,7 +67,9 @@ fi
NOT_FMT_FILES=$(gofmt -l MyGame) NOT_FMT_FILES=$(gofmt -l MyGame)
if [[ ${NOT_FMT_FILES} != "" ]]; then 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 # enable this when enums are properly formated
# exit 1 # exit 1
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment