mirror of
https://github.com/rancher/os.git
synced 2025-06-22 13:07:04 +00:00
14 lines
185 B
Bash
Executable File
14 lines
185 B
Bash
Executable File
#!/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
|