From 04e67d8e9dcd6bc43208220f4a87036d3d185f06 Mon Sep 17 00:00:00 2001 From: perillamint Date: Sun, 10 Mar 2024 17:04:32 +0900 Subject: [PATCH] Specify wget output file name (to workaround issue on wget2.1) --- create-package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create-package.sh b/create-package.sh index 5804c66..49c441d 100755 --- a/create-package.sh +++ b/create-package.sh @@ -66,7 +66,8 @@ fi # Downloads the discord tar.gz archive and puts its name in the global variable archive_name. download_discord() { echo "Downloading $app_name for linux..." - wget --content-disposition $wget_progress "${download_url}?platform=linux&format=tar.gz" + archive_url=$(curl -is --write-out "%{redirect_url}\n" "${download_url}?platform=linux&format=tar.gz" -o /dev/null) + wget --content-disposition $wget_progress "${archive_url}" archive_name="$(ls *.tar.gz)" }