mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 23:42:29 +00:00
Fix formatting tests to exclude Godeps
This commit is contained in:
parent
7ac0323de3
commit
34dcae78de
@ -1,8 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -n "$(gofmt -l .)" ]]; then
|
||||
echo "Bad formatting, run make format-gosuper to fix it."
|
||||
exit 1
|
||||
else
|
||||
echo "Formatting test passed."
|
||||
fi
|
||||
DIRS=`ls -l . | egrep '^d' | awk '{print $9}'`
|
||||
|
||||
DIRS=`echo $DIRS | sed "s/Godeps//g"`
|
||||
|
||||
# and finally loop over the cleaned up directory list.
|
||||
for DIR in $DIRS
|
||||
do
|
||||
if [[ -n "$(gofmt -l ${DIR})" ]]; then
|
||||
echo "Bad formatting, run make format-gosuper to fix it."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo "Formatting test passed."
|
||||
|
Loading…
Reference in New Issue
Block a user