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
4950fi
5051
5152DOCKER_EXEC () {
52- $DOCKER_CI_CMD_PREFIX bash -c " export PATH=$BASE_SCRATCH_DIR /bins/:\$ PATH && cd $P_CI_DIR && $* "
53+ $DOCKER_CI_CMD_PREFIX bash -c " export PATH=$BASE_SCRATCH_DIR /bins/:\$ PATH && cd \" $P_CI_DIR \" && $* "
5354}
5455export -f DOCKER_EXEC
5556
5960
6061if [[ $DOCKER_NAME_TAG == centos* ]]; then
6162 ${CI_RETRY_EXE} DOCKER_EXEC yum -y install epel-release
62- ${CI_RETRY_EXE} DOCKER_EXEC yum -y install $DOCKER_PACKAGES $PACKAGES
63+ ${CI_RETRY_EXE} DOCKER_EXEC yum -y install " $DOCKER_PACKAGES " " $PACKAGES "
6364elif [ " $CI_USE_APT_INSTALL " != " no" ]; then
6465 ${CI_RETRY_EXE} DOCKER_EXEC apt-get update
65- ${CI_RETRY_EXE} DOCKER_EXEC apt-get install --no-install-recommends --no-upgrade -y $PACKAGES $DOCKER_PACKAGES
66+ ${CI_RETRY_EXE} DOCKER_EXEC apt-get install --no-install-recommends --no-upgrade -y " $PACKAGES " " $DOCKER_PACKAGES "
6667 if [ -n " $PIP_PACKAGES " ]; then
68+ # shellcheck disable=SC2086
6769 ${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
6870 fi
6971fi
@@ -74,14 +76,14 @@ if [ "$CI_OS_NAME" == "macos" ]; then
7476else
7577 DOCKER_EXEC free -m -h
7678 DOCKER_EXEC echo " Number of CPUs \(nproc\):" \$\( nproc\)
77- DOCKER_EXEC echo $( lscpu | grep Endian)
79+ DOCKER_EXEC echo " $( lscpu | grep Endian) "
7880fi
7981DOCKER_EXEC echo " Free disk space:"
8082DOCKER_EXEC df -h
8183
8284if [ " $RUN_FUZZ_TESTS " = " true" ] || [ " $RUN_UNIT_TESTS " = " true" ] || [ " $RUN_UNIT_TESTS_SEQUENTIAL " = " true" ]; then
83- if [ ! -d ${DIR_QA_ASSETS} ]; then
84- DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets ${DIR_QA_ASSETS}
85+ if [ ! -d " ${DIR_QA_ASSETS} " ]; then
86+ DOCKER_EXEC git clone --depth=1 https://github.com/bitcoin-core/qa-assets " ${DIR_QA_ASSETS} "
8587 fi
8688
8789 export DIR_FUZZ_IN=${DIR_QA_ASSETS} /fuzz_seed_corpus/
@@ -91,17 +93,17 @@ DOCKER_EXEC mkdir -p "${BASE_SCRATCH_DIR}/sanitizer-output/"
9193
9294if [ -z " $DANGER_RUN_CI_ON_HOST " ]; then
9395 echo " Create $BASE_ROOT_DIR "
94- DOCKER_EXEC rsync -a /ro_base/ $BASE_ROOT_DIR
96+ DOCKER_EXEC rsync -a /ro_base/ " $BASE_ROOT_DIR "
9597fi
9698
9799if [ " $USE_BUSY_BOX " = " true" ]; then
98100 echo " Setup to use BusyBox utils"
99- DOCKER_EXEC mkdir -p $ BASE_SCRATCH_DIR /bins/
101+ DOCKER_EXEC mkdir -p " ${ BASE_SCRATCH_DIR} /bins/"
100102 # tar excluded for now because it requires passing in the exact archive type in ./depends (fixed in later BusyBox version)
101103 # find excluded for now because it does not recognize the -delete option in ./depends (fixed in later BusyBox version)
102104 # ar excluded for now because it does not recognize the -q option in ./depends (unknown if fixed)
103105 # shellcheck disable=SC1010
104- 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
106+ 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
105107 # Print BusyBox version
106108 DOCKER_EXEC patch --help
107109fi
0 commit comments