Do no longer use wget to download the file, use curl. Check that curl and jq exists. Update ReadMe file
16 lines
376 B
Bash
Executable File
16 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
|
|
# shellcheck source=init.sh
|
|
. "${BASE_FOLDER}init.sh";
|
|
|
|
cd "${download_folder}" || exit;
|
|
curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |\
|
|
grep browser_download_url |\
|
|
cut -d '"' -f 4 |\
|
|
grep "${arch}$" |\
|
|
xargs curl -LJO --output-dir "${download_folder}"
|
|
cd - || exit;
|
|
|
|
# __END__
|