Skip to content

Commit

Permalink
ubuntu uses dash which does not support string manipulation like bash…
Browse files Browse the repository at this point in the history
… does
  • Loading branch information
paresy authored Jun 10, 2024
1 parent c099cd1 commit 8d25681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8d25681

Please sign in to comment.