k3s/vendor/github.com/mindprince/gonvml/.travis.gofmt.sh

8 lines
123 B
Bash
Raw Normal View History

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