Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Apr 17, 2024
1 parent 7a408d0 commit e1a6b60
Show file tree
Hide file tree
Showing 24 changed files with 108 additions and 24 deletions.
6 changes: 5 additions & 1 deletion scripts/drevops/deploy-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in docker; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in docker; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 46 in scripts/drevops/deploy-docker.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/deploy-docker.sh#L44-L46

Added lines #L44 - L46 were not covered by tests

info "Started DOCKER deployment."

Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/deploy-lagoon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ if ! command -v lagoon >/dev/null || [ -n "${DREVOPS_LAGOONCLI_FORCE_INSTALL}" ]
export PATH="${PATH}:${DREVOPS_LAGOONCLI_PATH}"
fi

for cmd in lagoon curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in lagoon curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 108 in scripts/drevops/deploy-lagoon.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/deploy-lagoon.sh#L106-L108

Added lines #L106 - L108 were not covered by tests

note "Configuring Lagoon instance."
#shellcheck disable=SC2218
Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/deploy-webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 38 in scripts/drevops/deploy-webhook.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/deploy-webhook.sh#L36-L38

Added lines #L36 - L38 were not covered by tests

info "Started WEBHOOK deployment."

Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/doctor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
warn() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[33m[WARN] %s\033[0m\n" "${1}" || printf "[WARN] %s\n" "${1}"; }
# @formatter:on

for cmd in docker pygmy ahoy; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in docker pygmy ahoy; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 78 in scripts/drevops/doctor.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/doctor.sh#L76-L78

Added lines #L76 - L78 were not covered by tests

#
# Main entry point.
Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/download-db-acquia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in php curl gunzip; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in php curl gunzip; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 61 in scripts/drevops/download-db-acquia.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/download-db-acquia.sh#L58-L61

Added lines #L58 - L61 were not covered by tests

info "Started database dump download from Acquia."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/download-db-curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 37 in scripts/drevops/download-db-curl.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/download-db-curl.sh#L35-L37

Added lines #L35 - L37 were not covered by tests

info "Started database dump download from CURL."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/download-db-docker-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in docker; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in docker; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 40 in scripts/drevops/download-db-docker-registry.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/download-db-docker-registry.sh#L37-L40

Added lines #L37 - L40 were not covered by tests

info "Started Docker data image download."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/download-db-ftp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 48 in scripts/drevops/download-db-ftp.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/download-db-ftp.sh#L45-L48

Added lines #L45 - L48 were not covered by tests

# Check all required values.
[ -z "${DREVOPS_DB_DOWNLOAD_FTP_USER}" ] && fail "Missing required value for DREVOPS_DB_DOWNLOAD_FTP_USER." && exit 1
Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/download-db-lagoon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in ssh rsync; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in ssh rsync; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 82 in scripts/drevops/download-db-lagoon.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/download-db-lagoon.sh#L79-L82

Added lines #L79 - L82 were not covered by tests

info "Started database dump download from Lagoon."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/export-db-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in docker; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in docker; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 40 in scripts/drevops/export-db-docker.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/export-db-docker.sh#L38-L40

Added lines #L38 - L40 were not covered by tests

info "Started Docker database image export."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/export-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in docker; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in docker; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 32 in scripts/drevops/export-db.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/export-db.sh#L30-L32

Added lines #L30 - L32 were not covered by tests

info "Started database export."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/github-labels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 42 in scripts/drevops/github-labels.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/github-labels.sh#L40-L42

Added lines #L40 - L42 were not covered by tests

# Array of labels to create. If DELETE_EXISTING_LABELS=1, the labels list will
# be exactly as below, otherwise labels below will be added to existing ones.
Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/login-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in docker; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in docker; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 36 in scripts/drevops/login-docker.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/login-docker.sh#L33-L36

Added lines #L33 - L36 were not covered by tests

# Check all required values.
[ -z "${DOCKER_REGISTRY}" ] && echo "Missing required value for DOCKER_REGISTRY." && exit 1
Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/mirror-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in git rsync; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in git rsync; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 50 in scripts/drevops/mirror-code.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/mirror-code.sh#L47-L50

Added lines #L47 - L50 were not covered by tests

info "Started code mirroring."

Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/notify-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in php curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in php curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 49 in scripts/drevops/notify-github.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/notify-github.sh#L47-L49

Added lines #L47 - L49 were not covered by tests

[ -z "${DREVOPS_NOTIFY_GITHUB_TOKEN}" ] && fail "Missing required value for DREVOPS_NOTIFY_GITHUB_TOKEN" && exit 1
[ -z "${DREVOPS_NOTIFY_REPOSITORY}" ] && fail "Missing required value for DREVOPS_NOTIFY_REPOSITORY" && exit 1
Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/notify-jira.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in php curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in php curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 59 in scripts/drevops/notify-jira.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/notify-jira.sh#L57-L59

Added lines #L57 - L59 were not covered by tests

[ -z "${DREVOPS_NOTIFY_JIRA_USER}" ] && fail "Missing required value for DREVOPS_NOTIFY_JIRA_USER" && exit 1
[ -z "${DREVOPS_NOTIFY_JIRA_TOKEN}" ] && fail "Missing required value for DREVOPS_NOTIFY_JIRA_TOKEN" && exit 1
Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/notify-newrelic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 59 in scripts/drevops/notify-newrelic.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/notify-newrelic.sh#L57-L59

Added lines #L57 - L59 were not covered by tests

[ -z "${DREVOPS_NOTIFY_NEWRELIC_PROJECT}" ] && fail "Missing required value for DREVOPS_NOTIFY_NEWRELIC_PROJECT" && exit 1
[ -z "${DREVOPS_NOTIFY_NEWRELIC_APIKEY}" ] && fail "Missing required value for DREVOPS_NOTIFY_NEWRELIC_APIKEY" && exit 1
Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/reset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in git; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in git; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 25 in scripts/drevops/reset.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/reset.sh#L23-L25

Added lines #L23 - L25 were not covered by tests

is_hard_reset="$([ "${1:-}" == "hard" ] && echo "1" || echo "0")"

Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ pass() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\033[31m[FAIL] %s\033[0m\n" "${1}" || printf "[FAIL] %s\n" "${1}"; }
# @formatter:on

for cmd in ssh-keygen ssh-add; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in ssh-keygen ssh-add; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 39 in scripts/drevops/setup-ssh.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/setup-ssh.sh#L37-L39

Added lines #L37 - L39 were not covered by tests

info "Started SSH setup."

Expand Down
6 changes: 5 additions & 1 deletion scripts/drevops/task-copy-db-acquia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ extract_json_value() {
}

# Pre-flight checks.
for cmd in curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
#shellcheck disable=SC2043
for cmd in curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 78 in scripts/drevops/task-copy-db-acquia.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/task-copy-db-acquia.sh#L75-L78

Added lines #L75 - L78 were not covered by tests

# Check that all required variables are present.
[ -z "${DREVOPS_ACQUIA_KEY}" ] && fail "Missing value for DREVOPS_ACQUIA_KEY." && exit 1
Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/task-copy-files-acquia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
# @formatter:on

# Pre-flight checks.
for cmd in php curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in php curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 56 in scripts/drevops/task-copy-files-acquia.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/task-copy-files-acquia.sh#L53-L56

Added lines #L53 - L56 were not covered by tests

info "Started database copying between environments in Acquia."

Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/task-custom-lagoon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ if ! command -v lagoon >/dev/null || [ -n "${DREVOPS_LAGOONCLI_FORCE_INSTALL}" ]
export PATH="${PATH}:${DREVOPS_LAGOONCLI_PATH}"
fi

for cmd in curl lagoon; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in curl lagoon; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 92 in scripts/drevops/task-custom-lagoon.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/task-custom-lagoon.sh#L89-L92

Added lines #L89 - L92 were not covered by tests

note "Configuring Lagoon instance."
#shellcheck disable=SC2218
Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/task-purge-cache-acquia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ fail() { [ "${TERM:-}" != "dumb" ] && tput colors >/dev/null 2>&1 && printf "\03
# @formatter:on

# Pre-flight checks.
for cmd in php curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in php curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 56 in scripts/drevops/task-purge-cache-acquia.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/task-purge-cache-acquia.sh#L53-L56

Added lines #L53 - L56 were not covered by tests

info "Started cache purging in Acquia."

Expand Down
5 changes: 4 additions & 1 deletion scripts/drevops/update-scaffold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ DREVOPS_INSTALLER_URL="${DREVOPS_INSTALLER_URL:-https://install.drevops.com}"
export DREVOPS_INSTALLER_URL
export DREVOPS_INSTALL_COMMIT

for cmd in php curl; do command -v ${cmd} >/dev/null || { fail "Command ${cmd} is not available"; exit 1; }; done
for cmd in php curl; do command -v ${cmd} >/dev/null || {
fail "Command ${cmd} is not available"
exit 1
}; done

Check warning on line 30 in scripts/drevops/update-scaffold.sh

View check run for this annotation

Codecov / codecov/patch

scripts/drevops/update-scaffold.sh#L28-L30

Added lines #L28 - L30 were not covered by tests

curl -L "${DREVOPS_INSTALLER_URL}"?"$(date +%s)" >/tmp/install
php /tmp/install --quiet
Expand Down

2 comments on commit e1a6b60

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.