Added simplified URLs for jetbrainspycharm

There are direct links for Intel and Apple Silicon packages of PyCharm Pro available. Replaced the existing URLs with the simplified ones.
Also corrected a doubled 'appNewVersion' line.
This commit is contained in:
Adrian Bühler
2021-04-12 20:09:10 +02:00
committed by GitHub
parent 54cf6ca9b3
commit bd71675961

View File

@@ -1617,11 +1617,10 @@ jetbrainspycharm)
type="dmg"
appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3)
if [[ $(arch) == i386 ]]; then
downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o "mac*.*.dmg" | cut -d '"' -f5)
downloadURL="https://download.jetbrains.com/product?code=PCP&latest&distribution=mac"
elif [[ $(arch) == arm64 ]]; then
downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o "macM1*.*.dmg" | cut -d '"' -f5)
downloadURL="https://download.jetbrains.com/product?code=PCP&latest&distribution=macM1"
fi
appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=PCP&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3)
expectedTeamID="2ZEFAR8TH3"
;;
jetbrainspycharmce|\