File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ set -o pipefail
55
66SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
77
8- set +e
9- golangci_lint_executable=$( which golangci-lint)
10- set -e
11- if [ -z " ${golangci_lint_executable} " ] || [ ! -x " ${golangci_lint_executable} " ]; then
8+ if ! command -v golangci-lint & > /dev/null; then
129 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
1310fi
1411
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ if [ "${CI:-false}" = 'false' ]; then
1111fi
1212
1313pushd " ${SCRIPT_DIR} /../../src" > /dev/null
14- go run github.com/onsi/ginkgo/v2/ginkgo $flags
15- popd > /dev/null
16-
14+ if ! command -v ginkgo & > /dev/null; then
15+ go install github.com/onsi/ginkgo/v2/ginkgo@latest
16+ fi
17+ ginkgo $flags
18+ popd > /dev/null
You can’t perform that action at this time.
0 commit comments