diff --git a/scripts/validate-go.sh b/scripts/validate-go.sh index 264ff3e89..9aad0bdf2 100755 --- a/scripts/validate-go.sh +++ b/scripts/validate-go.sh @@ -22,10 +22,12 @@ readonly red=$(tput bold; tput setaf 1) readonly green=$(tput bold; tput setaf 2) readonly yellow=$(tput bold; tput setaf 3) +readonly REPO=github.com/kubernetes/deployment-manager + exit_code=0 find_go_files() { - git ls-files '*.go' + git -C "${GOPATH}/src/${REPO}" ls-files '*.go' } echo "==> Running golint..."