Files
gitea-download/download.sh
Clemens Schwaighofer aca80a9775 Clean up shell code
2024-08-28 10:12:59 +09:00

16 lines
360 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}$" |\
wget -P "${download_folder}" -i -
cd - || exit;
# __END__