diff options
author | Joshua M. Boniface <joshua@boniface.me> | 2024-04-30 01:39:23 -0400 |
---|---|---|
committer | Joshua M. Boniface <joshua@boniface.me> | 2024-04-30 01:39:23 -0400 |
commit | 47d631b11528eb2927f5e5660dec1dc2d523d610 (patch) | |
tree | 02be4b0f7660f4ab5049bce7dd3e1d144b0fb667 | |
parent | Remove extraneous sources.list.d entries on Ubuntu (diff) | |
download | jellyfin-packaging-47d631b11528eb2927f5e5660dec1dc2d523d610.tar.gz jellyfin-packaging-47d631b11528eb2927f5e5660dec1dc2d523d610.tar.bz2 jellyfin-packaging-47d631b11528eb2927f5e5660dec1dc2d523d610.zip |
Avoid failing if sources.list.d is empty
-rw-r--r-- | debian/docker/Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
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 \ |