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:
@@ -5,7 +5,7 @@ ROOTDIR="/root/project"
|
||||
BUILDDIR="${ROOTDIR}/build"
|
||||
mkdir -p "${BUILDDIR}" && mkdir -p "$BUILDDIR/deps"
|
||||
|
||||
generate_protobuf_bindings()
|
||||
function generate_protobuf_bindings
|
||||
{
|
||||
cd "${ROOTDIR}"/test/tools/ossfuzz
|
||||
# Generate protobuf C++ bindings
|
||||
@@ -15,7 +15,7 @@ generate_protobuf_bindings()
|
||||
done
|
||||
}
|
||||
|
||||
build_fuzzers()
|
||||
function build_fuzzers
|
||||
{
|
||||
cd "${BUILDDIR}"
|
||||
cmake .. -DCMAKE_BUILD_TYPE="${CMAKE_BUILD_TYPE:-Release}" \
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
function error() {
|
||||
function error {
|
||||
echo >&2 "ERROR: ${1} Aborting." && false
|
||||
}
|
||||
|
||||
function warning() {
|
||||
function warning {
|
||||
echo >&2 "WARNING: ${1}"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user