mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
84062565c4
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
15 lines
295 B
Bash
Executable File
15 lines
295 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for dir in $(find ./* -path ./vendor -prune -or -type d -print); do
|
|
errormessage=$(gofmt -l $dir)
|
|
if [ -n "$errormessage" ]; then
|
|
echo "$errormessage"
|
|
failed=1
|
|
fi
|
|
done
|
|
|
|
if [ -n "$failed" ]; then
|
|
echo "Bad formatting, run make format-gosuper to fix above errors."
|
|
exit 1
|
|
fi
|