[FAB-15676] Fix issues in golinter.sh
[FAB-15676] Fix issues in golinter.sh

Fixed the issues flagged by shellcheck in scripts/golinter.sh.
Ignored functions.sh because it's checked by other JIRA.
Handled TEMPLATE for go list command as a literal.

Signed-off-by: Yukihiko <de1f9bf9e6570ac16d59ded95c5a8b3393ed1bea@jp.fujitsu.com>
Change-Id: I102b661ca0b88bea6a56ff5ae6812d9644c0cc71

manish-sethi/fabric-sidedb,hyperledger/fabric,manish-sethi/fabric-sidedb,muralisrini/fabric,manish-sethi/fabric,binhn/fabric,binhn/fabric,stemlending/fabric,stemlending/fabric,muralisrini/fabric,manish-sethi/fabric-sidedb,stemlending/fabric,binhn/fabric,manish-sethi/fabric-sidedb,hyperledger/fabric,stemlending/fabric,jimthematrix/fabric,manish-sethi/fabric-sidedb,manish-sethi/fabric-sidedb,manish-sethi/fabric,jimthematrix/fabric,muralisrini/fabric,manish-sethi/fabric-sidedb