So I use to have a script that downloaded PIA VPN but now when I run a curl command on terminal using
' curl https://www.privateinternetaccess.com/installer/x/download_installer_osx '
it just shows the website in plain text rather than an app can anyone offer any insights what is the best way to go about this?
Yea it is automated got it sorted now. Used this script
mkdir -p /Volumes/Macintosh HD/Users/Shared/temp
cd /Volumes/Macintosh HD/Users/Shared/temp
curl -LO https://www.privateinternetaccess.com/installer/x/download_installer_osx
PIAURL=$(cat download_installer_osx | grep .zip | grep -Eo "(http|https)://[a-zA-Z0-9./?=-]")
PIAZIP=$(ls | grep *.zip)
curl -LO $PIAURL
open /Volumes/Macintosh HD/Users/Shared/temp/Private Internet Access Installer.app
rm -rf /Volumes/Macintosh HD/Users/Shared/temp