2023-01-17 13:52:05 -03:00
|
|
|
#!/usr/bin/env bash
|
2023-07-19 05:12:12 -04:00
|
|
|
#
|
|
|
|
# Copyright (c) The Bitcoin Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or https://opensource.org/license/mit/.
|
|
|
|
|
2023-01-17 13:52:05 -03:00
|
|
|
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
|
|
|
|
|
2023-07-16 06:01:25 -04:00
|
|
|
export PATH="/python_build/bin:${PATH}"
|
2023-02-14 13:42:12 -03:00
|
|
|
export LINT_RUNNER_PATH="/lint_test_runner"
|
2023-07-16 06:01:25 -04:00
|
|
|
|
2023-01-17 13:52:05 -03:00
|
|
|
if [ -z "$1" ]; then
|
2024-03-15 11:00:13 -03:00
|
|
|
bash -ic "./ci/lint/06_script.sh"
|
2023-01-17 13:52:05 -03:00
|
|
|
else
|
|
|
|
exec "$@"
|
|
|
|
fi
|