From 47d631b11528eb2927f5e5660dec1dc2d523d610 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 30 Apr 2024 01:39:23 -0400 Subject: Avoid failing if sources.list.d is empty --- debian/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/docker/Dockerfile b/debian/docker/Dockerfile index 42f2dfa..d55a08a 100644 --- a/debian/docker/Dockerfile +++ b/debian/docker/Dockerfile @@ -51,7 +51,7 @@ RUN apt-get update -y \ # Prepare the cross-toolchain RUN if test "${PACKAGE_ARCH}" != "$( dpkg --print-architecture )"; then \ if grep -q -i ubuntu /etc/os-release; then \ - rm /etc/apt/sources.list /etc/apt/sources.list.d/* \ + rm /etc/apt/sources.list /etc/apt/sources.list.d/* || true \ && export CODENAME="$( lsb_release -c -s )" \ && echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ ${CODENAME} main restricted universe multiverse" >>/etc/apt/sources.list.d/amd64.list \ && echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ ${CODENAME}-updates main restricted universe multiverse" >>/etc/apt/sources.list.d/amd64.list \ -- cgit