mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
b68e5a7fef
When running lints on Cirrus, a special envvar is set ($CIRRUS_PR); emulate this when running linters locally by setting $LOCAL_BRANCH to any value.
13 lines
298 B
Bash
Executable File
13 lines
298 B
Bash
Executable File
#!/usr/bin/env bash
|
|
export LC_ALL=C
|
|
|
|
# Fixes permission issues when there is a container UID/GID mismatch with the owner
|
|
# of the mounted bitcoin src dir.
|
|
git config --global --add safe.directory /bitcoin
|
|
|
|
if [ -z "$1" ]; then
|
|
LOCAL_BRANCH=1 bash -ic "./ci/lint/06_script.sh"
|
|
else
|
|
exec "$@"
|
|
fi
|