From b5007750ea52552d1ed668bd481c9cf0c63ea9f8 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 31 Aug 2024 09:53:15 +0200 Subject: [PATCH] update: fix dsmdata file Signed-off-by: AuxXxilium --- update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index 2db43b7..fd7be36 100755 --- a/update.sh +++ b/update.sh @@ -22,7 +22,7 @@ function getDSM() { else PAT_URL=$(echo "${PJ}" | jq -r ".\"${VERSION}\".url") PAT_HASH=$(echo "${PJ}" | jq -r ".\"${VERSION}\".sum") - URLVER="$(echo "${PV}" | cut -d'.' -f1,2)" + URLVER="$(echo "${VERSION}" | cut -d'.' -f1,2)" PAT_FILE="${MODEL}_${VERSION}.pat" PAT_PATH="${CACHE_PATH}/dl/${PAT_FILE}" UNTAR_PAT_PATH="${CACHE_PATH}/${MODEL}/${VERSION}" @@ -31,7 +31,7 @@ function getDSM() { # Make Destinations mkdir -p "${DESTINATION}" mkdir -p "${DESTINATIONFILES}" - echo "${MODEL} ${URLVER} (${VERSION})" + echo "${MODEL} ${VERSION:0:3} (${VERSION})" echo "" >>"${TMP_PATH}/dsmdata.yml" echo "${MODEL} ${URLVER} (${VERSION})" >>"${TMP_PATH}/dsmdata.yml" echo "${PAT_URL}"