Revision a5fbbb3fb52309c968f1feffb2d371245081a451 authored by Marge Bot on 16 January 2024, 13:14:25 UTC, committed by Marge Bot on 16 January 2024, 13:14:25 UTC
Co-authored-by: Killian Delarue <killian.delarue@nomadic-labs.com> Approved-by: Arvid Jakobsson <arvid.jakobsson@nomadic-labs.com> Approved-by: Boubacar Sall <boubacar@nomadic-labs.com> Approved-by: pietro <pietro.abate@nomadic-labs.com> See merge request https://gitlab.com/tezos/tezos/-/merge_requests/11518
shellcheck_version.sh
#!/usr/bin/env bash
#
# Check that shellcheck's version is the expected one. Returns 0
# in case of success, 1 otherwise.
declare -r github="https://github.com/koalaman/shellcheck"
declare -r expected_version="0.9.0" # This version is the one used
# by the CI's test Docker image. This version hence needs to be updated
# when the image is updated and pulls a newer version of shellcheck.
# When this happens, the CI of tezos/tezos will start failing; so we will
# be notified that a change here is required.
command -v shellcheck &> /dev/null || {
echo "shellcheck $expected_version must be installed. See $github for instructions."
exit 1
}
actual_version=$(shellcheck --version | grep version: | awk '{print $2}')
if [[ "$actual_version" != "$expected_version" ]]; then
echo "shellcheck version must be $expected_version, but found version $actual_version."
echo "Please install shellcheck version $expected_version. See $github for instructions."
exit 1
fi
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...