mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Route verify-gofmt output to stderr
This commit is contained in:
parent
6375e2b24d
commit
3a9e115423
@ -54,6 +54,8 @@ find_files() {
|
|||||||
# have failed before getting to the "echo" in the block below.
|
# have failed before getting to the "echo" in the block below.
|
||||||
diff=$(find_files | xargs ${gofmt} -d -s 2>&1) || true
|
diff=$(find_files | xargs ${gofmt} -d -s 2>&1) || true
|
||||||
if [[ -n "${diff}" ]]; then
|
if [[ -n "${diff}" ]]; then
|
||||||
echo "${diff}"
|
echo "${diff}" >&2
|
||||||
|
echo >&2
|
||||||
|
echo "Run ./hack/update-gofmt.sh" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user