680845cb1c
Linux build / Determine Swift version (push) Waiting to run
Linux build / Linux compile check (push) Blocked by required conditions
Build containerization / Verify commit signatures (push) Has been skipped
Build containerization / containerization (push) Successful in 0s
17 lines
315 B
Bash
Executable File
17 lines
315 B
Bash
Executable File
#! /bin/bash -e
|
|
|
|
setup_error() {
|
|
echo failed to run: $1 1>&2
|
|
echo run '"make pre-commit"' and try again 1>&2
|
|
exit 1
|
|
}
|
|
|
|
if [ ! -z "${PRECOMMIT_NOFMT}" ] ; then
|
|
exit 0
|
|
fi
|
|
|
|
echo checking formatting and licenses 1>&2
|
|
project_pathname=$(git rev-parse --show-toplevel)
|
|
cd "${project_pathname}"
|
|
make check
|