From 3d7be4de12a5b605a6ac64e33d473e6cd4e67902 Mon Sep 17 00:00:00 2001 From: Eduard Veit Date: Fri, 28 Apr 2023 08:43:04 +0200 Subject: [PATCH] minor: replace Wget with cURL --- gitea-installer.sh | 4 ++-- gitea-update.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gitea-installer.sh b/gitea-installer.sh index 5d8a5dc..38b6aae 100644 --- a/gitea-installer.sh +++ b/gitea-installer.sh @@ -19,7 +19,7 @@ function install_gitea read -r -p "$APP_NAME admin user: " ADMIN_USER ask_for_password echo "Installing $APP_NAME $INSTALL_VERSION" - wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL" + curl --location --progress-bar --output "$TMP_LOCATION"/gitea "$DOWNLOAD_URL" verify_file mkdir --parents ~/gitea/custom/conf/ mv --verbose "$TMP_LOCATION"/gitea "$GITEA_BINARY" @@ -281,7 +281,7 @@ GITHUB_API_URL=https://api.github.com/repos/$ORG/$REPO/releases/latest function do_update_procedure { - wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL" + curl --location --progress-bar --output "$TMP_LOCATION"/gitea "$DOWNLOAD_URL" verify_file $GITEA_BINARY manager flush-queues supervisorctl stop gitea diff --git a/gitea-update.sh b/gitea-update.sh index 4ae7bf1..e803b86 100644 --- a/gitea-update.sh +++ b/gitea-update.sh @@ -11,7 +11,7 @@ GITHUB_API_URL=https://api.github.com/repos/$ORG/$REPO/releases/latest function do_update_procedure { - wget --quiet --progress=bar:force --output-document "$TMP_LOCATION"/gitea "$DOWNLOAD_URL" + curl --location --progress-bar --output "$TMP_LOCATION"/gitea "$DOWNLOAD_URL" verify_file $GITEA_BINARY manager flush-queues supervisorctl stop gitea