Skip to content

Commit

Permalink
Fix gofmt hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yorinasub17 committed May 8, 2019
1 parent 4c4e576 commit 3570957
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hooks/gofmt.sh
Expand Up @@ -7,6 +7,7 @@ set -e
# workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
export PATH=$PATH:/usr/local/bin


for file in "$@"; do
go fmt "$(dirname "$file")"
done
go fmt "./$(dirname "$file")"
done

0 comments on commit 3570957

Please sign in to comment.