1
1
#! /usr/bin/env bash
2
2
#
3
- # Copyright (c) 2018-2022 The Bitcoin Core developers
3
+ # Copyright (c) 2018-present The Bitcoin Core developers
4
4
# Distributed under the MIT software license, see the accompanying
5
5
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
6
@@ -32,13 +32,13 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
32
32
33
33
# shellcheck disable=SC2086
34
34
CI_CONTAINER_ID=$( docker run $CI_CONTAINER_CAP --rm --interactive --detach --tty \
35
- --mount type=bind,src=$BASE_READ_ONLY_DIR ,dst=/ro_base ,readonly \
35
+ --mount " type=bind,src=$BASE_READ_ONLY_DIR ,dst=$BASE_READ_ONLY_DIR ,readonly" \
36
36
--mount " type=volume,src=${CONTAINER_NAME} _ccache,dst=$CCACHE_DIR " \
37
37
--mount " type=volume,src=${CONTAINER_NAME} _depends,dst=$DEPENDS_DIR " \
38
38
--mount " type=volume,src=${CONTAINER_NAME} _previous_releases,dst=$PREVIOUS_RELEASES_DIR " \
39
39
--env-file /tmp/env \
40
- --name $CONTAINER_NAME \
41
- $CONTAINER_NAME )
40
+ --name " $CONTAINER_NAME " \
41
+ " $CONTAINER_NAME " )
42
42
export CI_CONTAINER_ID
43
43
export CI_EXEC_CMD_PREFIX=" docker exec ${CI_CONTAINER_ID} "
44
44
else
@@ -56,7 +56,7 @@ export -f CI_EXEC
56
56
# Normalize all folders to BASE_ROOT_DIR
57
57
CI_EXEC rsync --archive --stats --human-readable " ${BASE_READ_ONLY_DIR} /" " ${BASE_ROOT_DIR} " || echo " Nothing to copy from ${BASE_READ_ONLY_DIR} /"
58
58
CI_EXEC " ${BASE_ROOT_DIR} /ci/test/01_base_install.sh"
59
- CI_EXEC rsync --archive --stats --human-readable /ro_base/ " ${BASE_ROOT_DIR} " || echo " Nothing to copy from ro_base "
59
+
60
60
# Fixes permission issues when there is a container UID/GID mismatch with the owner
61
61
# of the git source code directory.
62
62
CI_EXEC git config --global --add safe.directory \" * \"
0 commit comments