Browse Source

hack/with-go-mod.sh: warn on stderr

Signed-off-by: Bjorn Neergaard <bjorn.neergaard@docker.com>
Bjorn Neergaard 2 years ago
parent
commit
48ff8a95cc
1 changed files with 4 additions and 2 deletions
  1. 4 2
      hack/with-go-mod.sh

+ 4 - 2
hack/with-go-mod.sh

@@ -14,8 +14,10 @@ ROOTDIR="$(git -C "$SCRIPTDIR" rev-parse --show-toplevel)"
 if test -e "${ROOTDIR}/go.mod"; then
 if test -e "${ROOTDIR}/go.mod"; then
 	{
 	{
 		scriptname=$(basename "$0")
 		scriptname=$(basename "$0")
-		echo "${scriptname}: WARN: go.mod exists in the repository root!"
-		echo "${scriptname}: WARN: Using your go.mod instead of our generated version -- this may misbehave!"
+		cat >&2 <<- EOF
+			$scriptname: WARN: go.mod exists in the repository root!
+			$scriptname: WARN: Using your go.mod instead of our generated version -- this may misbehave!
+		EOF
 	} >&2
 	} >&2
 else
 else
 	set -x
 	set -x