Skip to content

Commit daaa00c

Browse files
authored
Merge pull request #13 from gruntwork-io/yori-fix-gofmt
Fix gofmt hook
2 parents 4c4e576 + 3570957 commit daaa00c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hooks/gofmt.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -e
77
# workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
88
export PATH=$PATH:/usr/local/bin
99

10+
1011
for file in "$@"; do
11-
go fmt "$(dirname "$file")"
12-
done
12+
go fmt "./$(dirname "$file")"
13+
done

0 commit comments

Comments
 (0)