github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/run-ci-lint.sh (about) 1 #!/bin/bash 2 3 set -eo pipefail 4 5 BIN="$1" 6 TARGET="$2" 7 8 if [[ ! -x "$BIN" ]]; then 9 echo "$BIN is not a binary" 10 exit 1 11 fi 12 13 TAGS=() 14 if [[ -n "$GO_BUILD_TAGS" ]]; then 15 TAGS=("--build-tags" "${GO_BUILD_TAGS}") 16 fi 17 18 "$BIN" run "$TARGET" "${TAGS[@]}"