Add all files
This commit is contained in:
14
download.sh
Executable file
14
download.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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__
|
||||
Reference in New Issue
Block a user