tests: fix some shellcheck violations

This commit is contained in:
Jose Diaz-Gonzalez
2021-02-13 02:22:21 -05:00
parent d8895bb64b
commit f64a754211
3 changed files with 3 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ get_phase_file_path() {
get_phases() {
declare desc="returns array of passed passes if all are in allowed array"
local passed_phases_list="$1"
# shellcheck disable=SC2001
local -r phases_allowed=$(sed -e 's/ /\|/g' <<<"${AVAILABLE_PHASES[@]}")
local phase
local passed_phases

View File

@@ -209,6 +209,7 @@ trigger-scheduler-docker-local-check-deploy() {
# shellcheck disable=SC2086
if OUTPUT=$(curl -# $CURL_ARGS 2>&1); then
# OUTPUT contains the HTTP response
# shellcheck disable=SC2076
if [[ "$OUTPUT" =~ "$EXPECTED" ]]; then
SUCCESS=1
break

View File

@@ -37,6 +37,7 @@ scheduler-docker-local-pre-deploy-chown-app() {
CONTAINER_PATHS=$(echo "$APP_PATHS" | awk -F ':' '{ print $2 }' | xargs)
DOCKER_ARGS=$(: | plugn trigger docker-args-deploy "$APP" "$IMAGE_TAG")
# strip --restart args from DOCKER_ARGS
# shellcheck disable=SC2001
DOCKER_ARGS=$(sed -e "s/--restart=[[:graph:]]\+[[:blank:]]\?//g" <<<"$DOCKER_ARGS")
eval "ARG_ARRAY=($DOCKER_ARGS)"
fi