1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00
Files
os/scripts/test

18 lines
282 B
Plaintext
Raw Normal View History

2015-02-17 17:01:03 -07:00
#!/bin/bash
set -e
2015-02-17 17:31:19 -07:00
if [[ ! -x "$(which go)" && -x /usr/local/go/bin/go ]]; then
PATH=/usr/local/go/bin:${PATH}
fi
2015-02-17 17:01:03 -07:00
cd $(dirname $0)/..
2015-02-17 17:31:19 -07:00
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -l)
2015-02-17 17:01:03 -07:00
for i in $result; do
echo $i
done
[ -n "$result" ] && exit 1
echo OK