mirror of
https://github.com/AuxXxilium/arc-dsm.git
synced 2024-11-24 02:20:55 +07:00
dsm: update script
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
5bb3a100ef
commit
0109d987ed
@ -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 ' ')
|
||||||
|
Loading…
Reference in New Issue
Block a user