You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/gofmt.sh

15 lines
249 B

#!/bin/sh
RETVAL=0
for file in $(find . -name '*.go' -not -path './build/*')
do
if [ -n "$(gofmt -l $file)" ]
then
echo "$file does not conform to gofmt rules. Run: gofmt -s -w $file" >&2
RETVAL=1
fi
done
exit $RETVAL