install-shellcheck: Upgrade ShellCheck to 0.9.0.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-01-04 12:11:33 -08:00 committed by Tim Abbott
parent 8a8e538af7
commit 986bad8f90
4 changed files with 15 additions and 13 deletions

View File

@ -18,6 +18,7 @@ fi
method=webroot method=webroot
args="$(getopt -o '' --long help,email:,method:,skip-symlink,agree-tos -n "$0" -- "$@")" args="$(getopt -o '' --long help,email:,method:,skip-symlink,agree-tos -n "$0" -- "$@")"
eval "set -- $args" eval "set -- $args"
agree_tos=()
while true; do while true; do
case "$1" in case "$1" in
--email) --email)
@ -35,7 +36,7 @@ while true; do
shift shift
;; ;;
--agree-tos) --agree-tos)
agree_tos=--agree-tos agree_tos=(--agree-tos)
shift shift
;; ;;
--help) --help)
@ -106,7 +107,7 @@ esac
# an annoying prompt we stifle with --no-eff-email. # an annoying prompt we stifle with --no-eff-email.
certbot certonly "${method_args[@]}" \ certbot certonly "${method_args[@]}" \
"${HOSTNAMES[@]}" -m "$EMAIL" \ "${HOSTNAMES[@]}" -m "$EMAIL" \
$agree_tos \ "${agree_tos[@]}" \
--force-interactive --no-eff-email --force-interactive --no-eff-email
symlink_with_backup() { symlink_with_backup() {

View File

@ -1,12 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -eu set -eu
version=0.8.0 version=0.9.0
arch="$(uname -m)" arch="$(uname -m)"
tarball="shellcheck-v$version.linux.$arch.tar.xz" tarball="shellcheck-v$version.linux.$arch.tar.xz"
declare -A sha256=( declare -A sha256=(
[aarch64]=9f47bbff5624babfa712eb9d64ece14c6c46327122d0c54983f627ae3a30a4ac [aarch64]=179c579ef3481317d130adebede74a34dbbc2df961a70916dd4039ebf0735fae
[x86_64]=ab6ee1b178f014d1b86d1e24da20d1139656c8b0ed34d2867fbb834dad02bf0a [x86_64]=700324c6dd0ebea0117591c6cc9d7350d9c7c5c287acbad7630fa17b1d4d9e2f
) )
check_version() { check_version() {

View File

@ -8,10 +8,11 @@ TEMP=$(getopt -o "" --long skip-provision-check -- "$@")
eval set -- "$TEMP" eval set -- "$TEMP"
# extract options. # extract options.
forcearg=()
while true; do while true; do
case "$1" in case "$1" in
--skip-provision-check) --skip-provision-check)
FORCEARG="--skip-provision-check" forcearg=(--skip-provision-check)
shift shift
;; ;;
--) --)
@ -45,12 +46,12 @@ printf '\e[0m'
echo echo
# prep # prep
run ./tools/check-provision $FORCEARG run ./tools/check-provision "${forcearg[@]}"
# ci/backend # ci/backend
run ./tools/lint --groups=backend $FORCEARG run ./tools/lint --groups=backend "${forcearg[@]}"
run ./tools/test-tools run ./tools/test-tools
run ./tools/test-backend --include-webhooks --ban-console-output $FORCEARG run ./tools/test-backend --include-webhooks --ban-console-output "${forcearg[@]}"
run ./tools/test-migrations run ./tools/test-migrations
# Not running SVG optimizing since it's low-churn # Not running SVG optimizing since it's low-churn
# run ./tools/setup/optimize-svg # run ./tools/setup/optimize-svg
@ -58,7 +59,7 @@ run ./tools/test-migrations
# ./tools/setup/generate_integration_bots_avatars.py --check-missing # ./tools/setup/generate_integration_bots_avatars.py --check-missing
# Not running documentation tests since it takes 20s and only tests documentation # Not running documentation tests since it takes 20s and only tests documentation
# run ./tools/test-documentation --skip-external-links # run ./tools/test-documentation --skip-external-links
run ./tools/test-help-documentation --skip-external-links $FORCEARG run ./tools/test-help-documentation --skip-external-links "${forcearg[@]}"
run ./tools/test-api run ./tools/test-api
# Not running requirements check locally, because slow and low-churn # Not running requirements check locally, because slow and low-churn
# run ./tools/test-locked-requirements # run ./tools/test-locked-requirements
@ -68,12 +69,12 @@ run ./tools/test-api
# run ./tools/test-queue-worker-reload # run ./tools/test-queue-worker-reload
# ci/frontend # ci/frontend
run ./tools/lint --groups=frontend $FORCEARG run ./tools/lint --groups=frontend "${forcearg[@]}"
run ./tools/test-js-with-node run ./tools/test-js-with-node
run ./tools/check-schemas run ./tools/check-schemas
run ./manage.py makemessages --locale en run ./manage.py makemessages --locale en
run env PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate run env PYTHONWARNINGS=ignore ./tools/check-capitalization --no-generate
run env PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate run env PYTHONWARNINGS=ignore ./tools/check-frontend-i18n --no-generate
run ./tools/test-js-with-puppeteer $FORCEARG run ./tools/test-js-with-puppeteer "${forcearg[@]}"
printf '\n\e[32mAll OK!\e[0m\n' printf '\n\e[32mAll OK!\e[0m\n'

View File

@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 159
# historical commits sharing the same major version, in which case a # historical commits sharing the same major version, in which case a
# minor version bump suffices. # minor version bump suffices.
PROVISION_VERSION = (217, 1) PROVISION_VERSION = (218, 0)