diff --git a/scripts/check.sh b/scripts/check.sh index 2e2f17d..669eefe 100755 --- a/scripts/check.sh +++ b/scripts/check.sh @@ -3,7 +3,12 @@ set -o errexit set -o pipefail -golangci-lint run --timeout=5m +if command -v golangci-lint &> /dev/null +then + golangci-lint run --timeout=5m +else + ./bin/golangci-lint run --timeout=5m +fi # ./bin/golangci-lint \ # --tests \