Merge pull request #28 from perillamint/wget2-fix
Specify wget output file name (to workaround issue on wget2.1)
This commit is contained in:
		
						commit
						2e9283c0cc
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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)" | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guillaume Raffin
						Guillaume Raffin