Fix pre-commit hook

This commit is contained in:
Deluan 2021-04-13 16:54:31 -04:00 committed by Joe Stump
parent b357be3973
commit a57b5d46cb
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -10,7 +10,7 @@
# #
# This script does not handle file names that contain spaces. # This script does not handle file names that contain spaces.
gofmtcmd=go run golang.org/x/tools/cmd/goimports gofmtcmd="go run golang.org/x/tools/cmd/goimports"
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$') gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '.go$')
[ -z "$gofiles" ] && exit 0 [ -z "$gofiles" ] && exit 0