dsm: update script

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2023-06-24 13:34:54 +02:00
parent 5bb3a100ef
commit 0109d987ed

View File

@ -2,14 +2,6 @@
HOME=$(pwd) HOME=$(pwd)
MODELSFILE="models.yml" MODELSFILE="models.yml"
MODELURL="https://raw.githubusercontent.com/AuxXxilium/arc-rss/main/models.yml"
# Clean old modelsfile
if [ -f "${MODELSFILE}" ]; then
rm -f "${MODELSFILE}"
fi
# Download new modelsfile
curl -k -w "%{http_code}" -L "${MODELSURL}" -o "${MODELSFILE}"
while IFS= read -r line; do while IFS= read -r line; do
PAT_VERSION=$(echo "${line}" | cut -f 1 -d ' ') PAT_VERSION=$(echo "${line}" | cut -f 1 -d ' ')