Clean up shell code

This commit is contained in:
Clemens Schwaighofer
2024-08-28 10:12:59 +09:00
parent bfeef66b0b
commit aca80a9775
4 changed files with 11 additions and 3 deletions

View File

@@ -1,14 +1,15 @@
#!/usr/bin/env bash
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
# shellcheck source=init.sh
. "${BASE_FOLDER}init.sh";
cd "${download_folder}";
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 -;
cd - || exit;
# __END__