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
+2 -2
View File
@@ -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}" \
+2 -2
View File
@@ -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}"
}