File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- #! /usr/ bin/env bash
1+ #! /bin/sh
22echo " Run checkstyle script"
33
44# run gofmt
55echo " Run 'gofmt'"
6- unformatted=$( gofmt -l ` pwd` /src/)
7- if [[ -n $unformatted ] ]; then
6+ unformatted=$( gofmt -l $( pwd) /src/)
7+ if [ -n " $unformatted " ]; then
88 echo >&2 " Error: Found files not formatted by gofmt"
99 for fi in $unformatted ; do
1010 echo >&2 $fi
1515
1616# run goimports
1717echo " Try update 'goimports'"
18- GOPATH=` pwd` /Tools go get golang.org/x/tools/cmd/goimports
18+ GOPATH=$( pwd) /Tools go get golang.org/x/tools/cmd/goimports
1919
2020echo " Run 'goimports'"
21- unformatted=$( Tools/bin/goimports -l ` pwd` /src/)
22- if [[ -n $unformatted ] ]; then
21+ unformatted=$( Tools/bin/goimports -l $( pwd) /src/)
22+ if [ -n " $unformatted " ]; then
2323 echo >&2 " Error: Found files not formatted by goimports"
2424 for f in $unformatted ; do
2525 echo >&2 $f
@@ -29,5 +29,5 @@ if [[ -n $unformatted ]]; then
2929fi
3030
3131echo " Run 'go vet'"
32- ln -s ` pwd` ` pwd` /vendor/src/github.com/aws/SSMCLI
32+ ln -s $( pwd) $( pwd) /vendor/src/github.com/aws/SSMCLI
3333go vet ./src/...
You can’t perform that action at this time.
0 commit comments