1212
1313if [ " $CI_OS_NAME " == " macos" ]; then
1414 sudo -H pip3 install --upgrade pip
15+ # shellcheck disable=SC2086
1516 IN_GETOPT_BIN=" /usr/local/opt/gnu-getopt/bin/getopt" ${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
1617fi
1718
@@ -39,6 +40,7 @@ if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
3940 systemctl restart docker
4041 fi
4142
43+ # shellcheck disable=SC2086
4244 DOCKER_ID=$( docker run $DOCKER_ADMIN --rm --interactive --detach --tty \
4345 --mount type=bind,src=$BASE_ROOT_DIR ,dst=/ro_base,readonly \
4446 --mount type=bind,src=$CCACHE_DIR ,dst=$CCACHE_DIR \
5456fi
5557
5658DOCKER_EXEC () {
57- $DOCKER_CI_CMD_PREFIX bash -c " export PATH=$BASE_SCRATCH_DIR /bins/:\$ PATH && cd $P_CI_DIR && $* "
59+ $DOCKER_CI_CMD_PREFIX bash -c " export PATH=$BASE_SCRATCH_DIR /bins/:\$ PATH && cd \" $P_CI_DIR \" && $* "
5860}
5961export -f DOCKER_EXEC
6062
6466
6567if [[ $DOCKER_NAME_TAG == centos* ]]; then
6668 ${CI_RETRY_EXE} DOCKER_EXEC dnf -y install epel-release
67- ${CI_RETRY_EXE} DOCKER_EXEC dnf -y --allowerasing install $DOCKER_PACKAGES $PACKAGES
69+ ${CI_RETRY_EXE} DOCKER_EXEC dnf -y --allowerasing install " $DOCKER_PACKAGES " " $PACKAGES "
6870elif [ " $CI_USE_APT_INSTALL " != " no" ]; then
6971 ${CI_RETRY_EXE} DOCKER_EXEC apt-get update
70- ${CI_RETRY_EXE} DOCKER_EXEC apt-get install --no-install-recommends --no-upgrade -y $PACKAGES $DOCKER_PACKAGES
72+ ${CI_RETRY_EXE} DOCKER_EXEC apt-get install --no-install-recommends --no-upgrade -y " $PACKAGES " " $DOCKER_PACKAGES "
7173 if [ -n " $PIP_PACKAGES " ]; then
74+ # shellcheck disable=SC2086
7275 ${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
7376 fi
7477fi
@@ -85,8 +88,8 @@ DOCKER_EXEC echo "Free disk space:"
8588DOCKER_EXEC df -h
8689
8790if [ " $RUN_FUZZ_TESTS " = " true" ] || [ " $RUN_UNIT_TESTS " = " true" ] || [ " $RUN_UNIT_TESTS_SEQUENTIAL " = " true" ]; then
88- if [ ! -d ${DIR_QA_ASSETS} ]; then
89- DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
91+ if [ ! -d " ${DIR_QA_ASSETS} " ]; then
92+ DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets " ${DIR_QA_ASSETS} "
9093 fi
9194
9295 export DIR_FUZZ_IN=${DIR_QA_ASSETS} /fuzz_seed_corpus/
106109
107110if [ -z " $DANGER_RUN_CI_ON_HOST " ]; then
108111 echo " Create $BASE_ROOT_DIR "
109- DOCKER_EXEC rsync -a /ro_base/ $BASE_ROOT_DIR
112+ DOCKER_EXEC rsync -a /ro_base/ " $BASE_ROOT_DIR "
110113fi
111114
112115if [ " $USE_BUSY_BOX " = " true" ]; then
113116 echo " Setup to use BusyBox utils"
114- DOCKER_EXEC mkdir -p $ BASE_SCRATCH_DIR /bins/
117+ DOCKER_EXEC mkdir -p " ${ BASE_SCRATCH_DIR} /bins/"
115118 # tar excluded for now because it requires passing in the exact archive type in ./depends (fixed in later BusyBox version)
116119 # find excluded for now because it does not recognize the -delete option in ./depends (fixed in later BusyBox version)
117120 # ar excluded for now because it does not recognize the -q option in ./depends (unknown if fixed)
118121 # shellcheck disable=SC1010
119- DOCKER_EXEC for util in \$\( busybox --list \| grep -v " ^ar$" \| grep -v " ^tar$" \| grep -v " ^find$" \)\; do ln -s \$\( command -v busybox\) $ BASE_SCRATCH_DIR /bins/\$ util\; done
122+ DOCKER_EXEC for util in \$\( busybox --list \| grep -v " ^ar$" \| grep -v " ^tar$" \| grep -v " ^find$" \)\; do ln -s \$\( command -v busybox\) " ${ BASE_SCRATCH_DIR} /bins/\$ util" \; done
120123 # Print BusyBox version
121124 DOCKER_EXEC patch --help
122125fi
0 commit comments