#!/bin/bash -vx
# find user agent string: https://developers.whatismybrowser.com/useragents/explore/

ua_macos="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15"
ua_win10="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763"
#arg="--content-disposition"
#arg="-L"

timestamp="$(date +%Y%m%d)"
dir="teamviewer_$timestamp"
mkdir -p $dir && cd $dir

aria2c -U "$ua_win10" https://get.teamviewer.com/sxlnet
#wget -A "$ua_win10" --content-disposition https://get.teamviewer.com/sxlnet
#curl -A "$ua_win10" -JLO https://get.teamviewer.com/sxlnet

read -n 1 -s -r -p "Press any key to continue"
