k3s/vendor/github.com/mindprince/gonvml/.travis.gofmt.sh
Darren Shepherd d246c89254 go mod vendor
2019-09-05 15:16:39 -07:00

8 lines
123 B
Bash

#!/bin/bash
if [ -n "$(gofmt -s -l .)" ]; then
echo "Go code is not properly formatted:"
gofmt -s -d -e .
exit 1
fi