From c620d0e525c83827d0b4c79fd9428d106699c1ba Mon Sep 17 00:00:00 2001 From: Sam Khan Date: Wed, 30 Sep 2020 15:40:24 +0200 Subject: [PATCH] Download shellcheck from Github. Trying to do so from the other URL resulted in the following error: You are downloading ShellCheck from an outdated URL! Please update to the new URL: https://github.com/koalaman/shellcheck/releases/download/v0.6.0/shellcheck-v0.6.0.linux.x86_64.tar.xz For more information, see: https://github.com/koalaman/shellcheck/issues/1871 PS: Sorry for breaking your build. The hosting costs were getting out of hand :( Change-Id: I6eda8316b82d9998abcd67175a7d02a627aabcb6 --- scripts/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre-commit b/scripts/pre-commit index 8be71519a..77cd684ba 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -194,7 +194,7 @@ sh_files=$(files_matching "(\.sh$|pre-commit$)" "deployments/.*/config.sh") if [[ -n "$sh_files" && "$(basename "$PWD")" != "apps" ]] ; then if [[ ! -e "$SHELLCHECK" ]] ; then mkdir -p "$SHELLCHECK_DIR" - curl -fsSL https://storage.googleapis.com/shellcheck/shellcheck-v0.6.0.linux.x86_64.tar.xz \ + curl -fsSL https://github.com/koalaman/shellcheck/releases/download/v0.6.0/shellcheck-v0.6.0.linux.x86_64.tar.xz \ | tar -C "$SHELLCHECK_DIR" -xJf - || exit 1 fi # Note: using a lower severity than `warning` is quite noisy.