kdnotify/tool/fmtck.sh

9 lines
150 B
Bash
Executable File

#!/bin/bash
if test -n "$(gofmt -l "$@")";
then
echo "[ERROR]: gofmt check errors"
gofmt -l "$@" | xargs -n1 printf ' > %s\n'
exit 1
fi