packer-cn/scripts/gofmtcheck.sh

9 lines
164 B
Bash
Raw Normal View History

2016-11-01 16:48:10 -04:00
#!/usr/bin/env bash
for f in $@; do
[ -n "`dos2unix 2>/dev/null < $f | gofmt -s -d`" ] && echo $f
done
2016-11-01 16:48:10 -04:00
# always return success or else 'make' will abort
2016-11-01 16:48:10 -04:00
exit 0