diff --git a/hack/with-go-mod.sh b/hack/with-go-mod.sh index 3be44d11ec..e4210f73c4 100755 --- a/hack/with-go-mod.sh +++ b/hack/with-go-mod.sh @@ -14,8 +14,10 @@ ROOTDIR="$(git -C "$SCRIPTDIR" rev-parse --show-toplevel)" if test -e "${ROOTDIR}/go.mod"; then { 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 else set -x