Merge pull request #28 from perillamint/wget2-fix

Specify wget output file name (to workaround issue on wget2.1)
This commit is contained in:
Guillaume Raffin 2024-03-11 09:38:27 +01:00 committed by GitHub
commit 2e9283c0cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)"
}