Use consistent syntax for Bash function declarations

This commit is contained in:
Kamil Śliwak
2021-10-28 13:49:10 +02:00
parent 8b69907f9b
commit 210abeba3c
16 changed files with 44 additions and 43 deletions
@@ -50,14 +50,14 @@
# FIXME: Can't use set -u because the old Bash on macOS treats empty arrays as unbound variables
set -eo pipefail
die()
function die
{
# shellcheck disable=SC2059
>&2 printf "ERROR: $1\n" "${@:2}"
exit 1
}
get_reported_solc_version()
function get_reported_solc_version
{
local solc_binary="$1"
@@ -70,7 +70,7 @@ get_reported_solc_version()
echo "$version_banner" | tail -n 1 | sed -n -E 's/^Version: (.*)$/\1/p'
}
validate_reported_version()
function validate_reported_version
{
local reported_version="$1"
local expected_version_and_commit="$2"