Files
postmarketos-mkinitfs/.gitlab-ci/check_gofmt.sh
Clayton Craft 49cf99f4d9 ci: add initial config for gitlab CI
Just checks linting, and build/test.
2021-08-10 19:10:41 -07:00

12 lines
146 B
Bash
Executable File

#!/bin/sh
files="$(gofmt -l .)"
[ -z "$files" ] && exit 0
# run gofmt to print out the diff of what needs to be changed
gofmt -d -e .
exit 1