1
0
mirror of https://github.com/rancher/os.git synced 2025-06-21 12:37:04 +00:00
os/scripts/test

18 lines
282 B
Plaintext
Raw Normal View History

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