dsm: update job

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2023-07-07 20:55:47 +02:00
parent 5526db42d7
commit ec4efc494b

View File

@ -18,7 +18,7 @@ function getDSM() {
mkdir -p "${DESTINATION}" mkdir -p "${DESTINATION}"
mkdir -p "${DESTINATIONFILES}" mkdir -p "${DESTINATIONFILES}"
# Grep Values # Grep Values
PAT_MODEL="$(echo "${MODEL}" | sed -e 's/\./%2E/g' -e 's/+/%2B/g')" PAT_MODEL="$(echo "${MODEL}" | sed -e 's/+/%2B/g')"
PAT_MAJOR="$(echo "${VERSION}" | cut -b 1)" PAT_MAJOR="$(echo "${VERSION}" | cut -b 1)"
PAT_MINOR="$(echo "${VERSION}" | cut -b 3)" PAT_MINOR="$(echo "${VERSION}" | cut -b 3)"
echo "${MODEL} ${VERSION}" echo "${MODEL} ${VERSION}"
@ -108,9 +108,9 @@ function getDSM() {
rm -f "${PAT_PATH}" rm -f "${PAT_PATH}"
rm -rf "${UNTAR_PAT_PATH}" rm -rf "${UNTAR_PAT_PATH}"
fi fi
echo "DSM extract complete: ${MODEL}_${VERSION}" echo "DSM Extraction complete: ${MODEL}_${VERSION}"
else else
echo "DSM extract Error: ${MODEL}_${VERSION}" echo "No DSM Update found: ${MODEL}_${VERSION}"
fi fi
cd ${HOME} cd ${HOME}
done <"${VERSIONSFILE}" done <"${VERSIONSFILE}"