Files
gitea-download/download.sh
Clemens Schwaighofer 11c1daf4a1 Update readme, remove wget need
Do no longer use wget to download the file, use curl.

Check that curl and jq exists.

Update ReadMe file
2024-08-28 12:02:27 +09:00

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__