diff --git a/Dockerfile b/Dockerfile index e6685d6..af0fd4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,8 @@ RUN \ if [ -z ${SABNZBD_VERSION+x} ]; then \ SABNZBD="sabnzbdplus"; \ else \ - SABNZBD="sabnzbdplus=${SABNZBD_VERSION}"; \ + SABNZBD_CLEAN=$(echo "${SABNZBD_VERSION}"| sed 's/..$//') && \ + SABNZBD="sabnzbdplus=${SABNZBD_CLEAN}"; \ fi && \ apt-get update && \ apt-get install -y \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 9529e07..cfd6e77 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -30,7 +30,8 @@ RUN \ if [ -z ${SABNZBD_VERSION+x} ]; then \ SABNZBD="sabnzbdplus"; \ else \ - SABNZBD="sabnzbdplus=${SABNZBD_VERSION}"; \ + SABNZBD_CLEAN=$(echo "${SABNZBD_VERSION}"| sed 's/..$//') && \ + SABNZBD="sabnzbdplus=${SABNZBD_CLEAN}"; \ fi && \ apt-get update && \ apt-get install -y \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 7723bd2..20494fc 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -30,7 +30,8 @@ RUN \ if [ -z ${SABNZBD_VERSION+x} ]; then \ SABNZBD="sabnzbdplus"; \ else \ - SABNZBD="sabnzbdplus=${SABNZBD_VERSION}"; \ + SABNZBD_CLEAN=$(echo "${SABNZBD_VERSION}"| sed 's/..$//') && \ + SABNZBD="sabnzbdplus=${SABNZBD_CLEAN}"; \ fi && \ apt-get update && \ apt-get install -y \