mirror of
https://github.com/kaboomserver/server.git
synced 2025-07-10 08:04:18 +00:00

* refactor!: rewrite update script * refactor: split common URL logic into download_with_args * feat: add skip_404 arg to url/zip download type
12 lines
221 B
Bash
12 lines
221 B
Bash
#!/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
|
|
}
|