From 1b887e23b3a9964c525d8a302b09b56626209ad9 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Wed, 30 Dec 2020 10:40:41 +1100 Subject: [PATCH] scripts/check works for local and docker build --- scripts/check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/check.sh b/scripts/check.sh index 2e2f17dc..669eefe6 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 \