Files
gitea-download/download.sh
Clemens Schwaighofer bfeef66b0b Add all files
2024-03-29 16:50:35 +09:00

15 lines
316 B
Bash
Executable File

#!/usr/bin/env bash
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
. "${BASE_FOLDER}init.sh";
cd "${download_folder}";
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 -;
# __END__