mirror of
https://github.com/kaboomserver/server.git
synced 2025-07-31 02:02:06 +00:00
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:
parent
1f1deda15c
commit
c4ca438600
11 changed files with 373 additions and 69 deletions
12
scripts/_sources/_url.sh
Normal file
12
scripts/_sources/_url.sh
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue