aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-01-25 15:05:17 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-01-25 15:05:20 +0100
commitf703c79ad729e1036431b20c8cb03f5b24c11815 (patch)
treea348a34492c6c4a6f25dd661523d45b3d023f3cc
parent50ac8f57748edd0bf4d42031710a59ebb8068a63 (diff)
parentfa88d4212300cbe3c9c535a148414239ab0f8507 (diff)
Merge bitcoin/bitcoin#26961: ci: Fix APPEND_APT_SOURCES_LIST trying to modify the host system
fa88d4212300cbe3c9c535a148414239ab0f8507 ci: Fix APPEND_APT_SOURCES_LIST trying to modify the host system (MarcoFalke) Pull request description: `>>` will be redirected to the host system, unless the CI system is already running in docker. This shouldn't lead to any issues, unless someone is running the CI as root, I guess. Still, fix it to avoid problems. ACKs for top commit: fanquake: ACK fa88d4212300cbe3c9c535a148414239ab0f8507 Tree-SHA512: 6c501fd69a62e3cea27d24647e1a02f0f63dad45737dbfed23e3f70d89aacfbe477c71ca8812a47ab4641a31288df5919512542d5d8b49fc57dc3ef2aa0cde33
-rwxr-xr-xci/test/04_install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/test/04_install.sh b/ci/test/04_install.sh
index 9bfe555243..53fe6d961f 100755
--- a/ci/test/04_install.sh
+++ b/ci/test/04_install.sh
@@ -93,7 +93,7 @@ elif [ "$CI_USE_APT_INSTALL" != "no" ]; then
CI_EXEC_ROOT add-apt-repository ppa:hadret/bpfcc
fi
if [[ -n "${APPEND_APT_SOURCES_LIST}" ]]; then
- CI_EXEC_ROOT echo "${APPEND_APT_SOURCES_LIST}" >> /etc/apt/sources.list
+ CI_EXEC_ROOT echo "${APPEND_APT_SOURCES_LIST}" \>\> /etc/apt/sources.list
fi
${CI_RETRY_EXE} CI_EXEC_ROOT apt-get update
${CI_RETRY_EXE} CI_EXEC_ROOT apt-get install --no-install-recommends --no-upgrade -y "$PACKAGES" "$CI_BASE_PACKAGES"