mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
15 lines
296 B
Bash
Executable File
15 lines
296 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Run the fmt on bindata so it does not trigger failure
|
|
go fmt ./pkg/data/bindata.go > /dev/null
|
|
|
|
# Get list of offending files
|
|
files="$(go fmt ./pkg/...)"
|
|
|
|
if [ -n "$files" ]; then
|
|
echo "Go code is not formatted:"
|
|
for file in $files; do
|
|
echo "----> $file"
|
|
done
|
|
exit 1
|
|
fi |