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

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