mirror of
https://github.com/rancher/os.git
synced 2025-08-06 17:24:16 +00:00
14 lines
185 B
Plaintext
14 lines
185 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
cd $(dirname $0)/..
|
||
|
|
||
|
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -s -l)
|
||
|
for i in $result; do
|
||
|
echo $i
|
||
|
done
|
||
|
|
||
|
[ -n "$result" ] && exit 1
|
||
|
|
||
|
echo OK
|