Rewrite server update script (#148)

* refactor!: rewrite update script

* refactor: split common URL logic into download_with_args

* feat: add skip_404 arg to url/zip download type
This commit is contained in:
amy 2024-12-21 00:24:52 -03:00 committed by GitHub
parent 1f1deda15c
commit c4ca438600
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 373 additions and 69 deletions

12
scripts/_sources/_url.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/sh
_download_type_url() {
read_args url skip_404
exitcode=0
download_with_args "$@" || exitcode=$?
if [ $exitcode = 100 ] && [ "${arg_skip_404:-false}" = "true" ]; then
return 0
fi
}