Update zohoworkdrivetruesync.sh

This commit is contained in:
Søren Theilgaard
2021-11-01 10:38:20 +01:00
parent 57f53c647e
commit 2c9085c0c5

View File

@@ -4,10 +4,8 @@ zohoworkdrivetruesync)
# Privacy policy: https://www.zoho.com/privacy.html # Privacy policy: https://www.zoho.com/privacy.html
name="Zoho WorkDrive TrueSync" name="Zoho WorkDrive TrueSync"
type="pkg" type="pkg"
if [[ $(arch) == "arm64" ]]; then #https://www.zoho.com/workdrive/truesync.html
downloadURL="https://files-accl.zohopublic.com/public/tsbin/download/c12aff2fd2a830b382c3ff79cf57ff1d" # beta for M1 #https://files-accl.zohopublic.com/public/tsbin/download/c488f53fb0fe339a8a3868a16d56ede6
elif [[ $(arch) == "i386" ]]; then downloadURL=$(curl -fs "https://www.zoho.com/workdrive/truesync.html" | tr '<' '\n' | grep -B3 "For Mac" | grep -o -m1 "https.*\"" | cut -d '"' -f1)
downloadURL=$(curl -fs "https://www.zoho.com/workdrive/truesync.html" | tr '<' '\n' | grep -B3 "For Mac" | grep -o -m1 "https.*\"" | cut -d '"' -f1)
fi
expectedTeamID="TZ824L8Y37" expectedTeamID="TZ824L8Y37"
;; ;;