mirror of
https://github.com/dokku/dokku.git
synced 2026-02-23 19:50:34 +01:00
tests: fix some shellcheck violations
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user