Tolerate ending slash when running staticcheck

This commit is contained in:
Wei Huang
2019-08-22 15:29:03 -07:00
parent 37651f1cef
commit b2751cf821

View File

@@ -25,6 +25,7 @@ source "${KUBE_ROOT}/hack/lib/util.sh"
kube::golang::verify_go_version
FOCUS="${1:-}"
FOCUS="${FOCUS%/}" # Remove the ending "/"
# See https://staticcheck.io/docs/checks
CHECKS=(