fix: shellcheck

This commit is contained in:
Michael 2022-09-14 15:10:08 +02:00 committed by GitHub
parent 788f8fa951
commit fd95560c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 20 deletions

View file

@ -8,15 +8,16 @@ TEXTRESET=$'\033[0m' # reset the foreground colour
# -failfast -timeout=5m
TESTFLAGS=(-cover "-coverprofile=cover.out" "${TESTFLAGS}")
if [ -n "$VERBOSE" ]; then
if [ -n "${VERBOSE}" ]; then
TESTFLAGS+=(-v)
elif [ -n "$VERBOSE_UNIT" ]; then
elif [ -n "${VERBOSE_UNIT}" ]; then
TESTFLAGS+=(-v)
fi
set +e
# shellcheck disable=SC2086
# shellcheck disable=SC2048
go test ${TESTFLAGS[*]} ./pkg/...
CODE=$?