mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use consistent syntax for Bash function declarations
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user