aboutsummaryrefslogtreecommitdiff
path: root/ci/lint/container-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/lint/container-entrypoint.sh')
-rwxr-xr-xci/lint/container-entrypoint.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/ci/lint/container-entrypoint.sh b/ci/lint/container-entrypoint.sh
new file mode 100755
index 0000000000..e94a75e22c
--- /dev/null
+++ b/ci/lint/container-entrypoint.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) The Bitcoin Core developers
+# Distributed under the MIT software license, see the accompanying
+# file COPYING or https://opensource.org/license/mit/.
+
+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
+
+export PATH="/python_build/bin:${PATH}"
+
+if [ -z "$1" ]; then
+ LOCAL_BRANCH=1 bash -ic "./ci/lint/06_script.sh"
+else
+ exec "$@"
+fi