From 8d25681c55600d935bb612eb3eb8a6e75d0b04a3 Mon Sep 17 00:00:00 2001 From: Michael Maroszek Date: Mon, 10 Jun 2024 11:33:09 +0200 Subject: [PATCH] ubuntu uses dash which does not support string manipulation like bash does --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8139994..17af27c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,8 +78,8 @@ USER $USER_UID:$USER_GID RUN \ cd ~ && \ export RUTOS_FILE=RUTX_R_GPL_${RUTOS_VERSION}.tar.gz && \ - export RUTOS_SHORT_VERSION=${RUTOS_VERSION//0} && \ - wget https://firmware.teltonika-networks.com/${RUTOS_SHORT_VERSION:1}/RUTX/${RUTOS_FILE} && \ + export RUTOS_SHORT_VERSION=$(echo $RUTOS_VERSION | sed 's/0//g' | sed 's/^\.//') && \ + wget https://firmware.teltonika-networks.com/${RUTOS_SHORT_VERSION}/RUTX/${RUTOS_FILE} && \ echo "${RUTOS_CHECKSUM} ${RUTOS_FILE}" | md5sum -c --status && \ tar -xf ${RUTOS_FILE} && \ rm ${RUTOS_FILE}