From e1a6b60dfc16211df81d1d1897e374a14b7f1a9d Mon Sep 17 00:00:00 2001 From: "tan.nguyen" Date: Wed, 17 Apr 2024 21:52:09 +0700 Subject: [PATCH] Lint. --- scripts/drevops/deploy-docker.sh | 6 +++++- scripts/drevops/deploy-lagoon.sh | 5 ++++- scripts/drevops/deploy-webhook.sh | 6 +++++- scripts/drevops/doctor.sh | 5 ++++- scripts/drevops/download-db-acquia.sh | 5 ++++- scripts/drevops/download-db-curl.sh | 6 +++++- scripts/drevops/download-db-docker-registry.sh | 6 +++++- scripts/drevops/download-db-ftp.sh | 6 +++++- scripts/drevops/download-db-lagoon.sh | 5 ++++- scripts/drevops/export-db-docker.sh | 6 +++++- scripts/drevops/export-db.sh | 6 +++++- scripts/drevops/github-labels.sh | 6 +++++- scripts/drevops/login-docker.sh | 6 +++++- scripts/drevops/mirror-code.sh | 5 ++++- scripts/drevops/notify-github.sh | 5 ++++- scripts/drevops/notify-jira.sh | 5 ++++- scripts/drevops/notify-newrelic.sh | 6 +++++- scripts/drevops/reset.sh | 6 +++++- scripts/drevops/setup-ssh.sh | 5 ++++- scripts/drevops/task-copy-db-acquia.sh | 6 +++++- scripts/drevops/task-copy-files-acquia.sh | 5 ++++- scripts/drevops/task-custom-lagoon.sh | 5 ++++- scripts/drevops/task-purge-cache-acquia.sh | 5 ++++- scripts/drevops/update-scaffold.sh | 5 ++++- 24 files changed, 108 insertions(+), 24 deletions(-) diff --git a/scripts/drevops/deploy-docker.sh b/scripts/drevops/deploy-docker.sh index 11775f151..e21e7e8d9 100755 --- a/scripts/drevops/deploy-docker.sh +++ b/scripts/drevops/deploy-docker.sh @@ -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 info "Started DOCKER deployment." diff --git a/scripts/drevops/deploy-lagoon.sh b/scripts/drevops/deploy-lagoon.sh index 7f7147149..0ec321259 100755 --- a/scripts/drevops/deploy-lagoon.sh +++ b/scripts/drevops/deploy-lagoon.sh @@ -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 note "Configuring Lagoon instance." #shellcheck disable=SC2218 diff --git a/scripts/drevops/deploy-webhook.sh b/scripts/drevops/deploy-webhook.sh index 12286956b..9e360a1f5 100755 --- a/scripts/drevops/deploy-webhook.sh +++ b/scripts/drevops/deploy-webhook.sh @@ -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 info "Started WEBHOOK deployment." diff --git a/scripts/drevops/doctor.sh b/scripts/drevops/doctor.sh index b144401a6..40426916b 100755 --- a/scripts/drevops/doctor.sh +++ b/scripts/drevops/doctor.sh @@ -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 # # Main entry point. diff --git a/scripts/drevops/download-db-acquia.sh b/scripts/drevops/download-db-acquia.sh index 3f77edd7b..9469d6cb7 100755 --- a/scripts/drevops/download-db-acquia.sh +++ b/scripts/drevops/download-db-acquia.sh @@ -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 info "Started database dump download from Acquia." diff --git a/scripts/drevops/download-db-curl.sh b/scripts/drevops/download-db-curl.sh index 577d165ac..94f300ba9 100755 --- a/scripts/drevops/download-db-curl.sh +++ b/scripts/drevops/download-db-curl.sh @@ -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 info "Started database dump download from CURL." diff --git a/scripts/drevops/download-db-docker-registry.sh b/scripts/drevops/download-db-docker-registry.sh index 88bead12e..e4e7d7f8c 100755 --- a/scripts/drevops/download-db-docker-registry.sh +++ b/scripts/drevops/download-db-docker-registry.sh @@ -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 info "Started Docker data image download." diff --git a/scripts/drevops/download-db-ftp.sh b/scripts/drevops/download-db-ftp.sh index 1d3f1702f..f17b187f3 100755 --- a/scripts/drevops/download-db-ftp.sh +++ b/scripts/drevops/download-db-ftp.sh @@ -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 all required values. [ -z "${DREVOPS_DB_DOWNLOAD_FTP_USER}" ] && fail "Missing required value for DREVOPS_DB_DOWNLOAD_FTP_USER." && exit 1 diff --git a/scripts/drevops/download-db-lagoon.sh b/scripts/drevops/download-db-lagoon.sh index 0b27c8e5e..c071cca51 100755 --- a/scripts/drevops/download-db-lagoon.sh +++ b/scripts/drevops/download-db-lagoon.sh @@ -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 info "Started database dump download from Lagoon." diff --git a/scripts/drevops/export-db-docker.sh b/scripts/drevops/export-db-docker.sh index 8dc922e5d..444a682e0 100755 --- a/scripts/drevops/export-db-docker.sh +++ b/scripts/drevops/export-db-docker.sh @@ -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 info "Started Docker database image export." diff --git a/scripts/drevops/export-db.sh b/scripts/drevops/export-db.sh index 06efc5cc7..417182e0a 100755 --- a/scripts/drevops/export-db.sh +++ b/scripts/drevops/export-db.sh @@ -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 info "Started database export." diff --git a/scripts/drevops/github-labels.sh b/scripts/drevops/github-labels.sh index e8de243c0..618fcaec1 100755 --- a/scripts/drevops/github-labels.sh +++ b/scripts/drevops/github-labels.sh @@ -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 # 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. diff --git a/scripts/drevops/login-docker.sh b/scripts/drevops/login-docker.sh index 44ac14f2f..b4f7cbeb2 100755 --- a/scripts/drevops/login-docker.sh +++ b/scripts/drevops/login-docker.sh @@ -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 all required values. [ -z "${DOCKER_REGISTRY}" ] && echo "Missing required value for DOCKER_REGISTRY." && exit 1 diff --git a/scripts/drevops/mirror-code.sh b/scripts/drevops/mirror-code.sh index 23b399b40..17b4567e4 100755 --- a/scripts/drevops/mirror-code.sh +++ b/scripts/drevops/mirror-code.sh @@ -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 info "Started code mirroring." diff --git a/scripts/drevops/notify-github.sh b/scripts/drevops/notify-github.sh index 34a91a1ca..bbbe3b15d 100755 --- a/scripts/drevops/notify-github.sh +++ b/scripts/drevops/notify-github.sh @@ -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 [ -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 diff --git a/scripts/drevops/notify-jira.sh b/scripts/drevops/notify-jira.sh index 67cb096c1..6bbf185f5 100755 --- a/scripts/drevops/notify-jira.sh +++ b/scripts/drevops/notify-jira.sh @@ -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 [ -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 diff --git a/scripts/drevops/notify-newrelic.sh b/scripts/drevops/notify-newrelic.sh index 817b60151..2db0a7074 100755 --- a/scripts/drevops/notify-newrelic.sh +++ b/scripts/drevops/notify-newrelic.sh @@ -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 [ -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 diff --git a/scripts/drevops/reset.sh b/scripts/drevops/reset.sh index 7c74f33d2..7784750f6 100755 --- a/scripts/drevops/reset.sh +++ b/scripts/drevops/reset.sh @@ -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 is_hard_reset="$([ "${1:-}" == "hard" ] && echo "1" || echo "0")" diff --git a/scripts/drevops/setup-ssh.sh b/scripts/drevops/setup-ssh.sh index f2919dd92..032f4a834 100755 --- a/scripts/drevops/setup-ssh.sh +++ b/scripts/drevops/setup-ssh.sh @@ -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 info "Started SSH setup." diff --git a/scripts/drevops/task-copy-db-acquia.sh b/scripts/drevops/task-copy-db-acquia.sh index cb97af49e..7abc3cba7 100755 --- a/scripts/drevops/task-copy-db-acquia.sh +++ b/scripts/drevops/task-copy-db-acquia.sh @@ -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 that all required variables are present. [ -z "${DREVOPS_ACQUIA_KEY}" ] && fail "Missing value for DREVOPS_ACQUIA_KEY." && exit 1 diff --git a/scripts/drevops/task-copy-files-acquia.sh b/scripts/drevops/task-copy-files-acquia.sh index 44b9598ca..006ee6c32 100755 --- a/scripts/drevops/task-copy-files-acquia.sh +++ b/scripts/drevops/task-copy-files-acquia.sh @@ -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 info "Started database copying between environments in Acquia." diff --git a/scripts/drevops/task-custom-lagoon.sh b/scripts/drevops/task-custom-lagoon.sh index 98101e2b0..2bd3dd7ae 100755 --- a/scripts/drevops/task-custom-lagoon.sh +++ b/scripts/drevops/task-custom-lagoon.sh @@ -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 note "Configuring Lagoon instance." #shellcheck disable=SC2218 diff --git a/scripts/drevops/task-purge-cache-acquia.sh b/scripts/drevops/task-purge-cache-acquia.sh index 460561098..a7e528f95 100755 --- a/scripts/drevops/task-purge-cache-acquia.sh +++ b/scripts/drevops/task-purge-cache-acquia.sh @@ -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 info "Started cache purging in Acquia." diff --git a/scripts/drevops/update-scaffold.sh b/scripts/drevops/update-scaffold.sh index 8fd95081e..0f220de0f 100755 --- a/scripts/drevops/update-scaffold.sh +++ b/scripts/drevops/update-scaffold.sh @@ -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 curl -L "${DREVOPS_INSTALLER_URL}"?"$(date +%s)" >/tmp/install php /tmp/install --quiet