mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-25 05:04:15 +00:00
Update postman.sh
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
postman)
|
postman)
|
||||||
# credit: Mischa van der Bent
|
|
||||||
name="Postman"
|
name="Postman"
|
||||||
type="zip"
|
type="zip"
|
||||||
downloadURL="https://dl.pstmn.io/download/latest/osx"
|
if [[ $(arch) == "arm64" ]]; then
|
||||||
appNewVersion=$(curl -Ifs https://dl.pstmn.io/download/latest/osx | grep "content-disposition:" | sed -n -e 's/^.*Postman-osx-//p' | sed 's/\.zip//' | sed $'s/[^[:print:]\t]//g' )
|
downloadURL="https://dl.pstmn.io/download/latest/osx_arm64"
|
||||||
|
appNewVersion=$(curl -fsL --head "${downloadURL}" | grep "content-disposition:" | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')
|
||||||
|
elif [[ $(arch) == "i386" ]]; then
|
||||||
|
downloadURL="https://dl.pstmn.io/download/latest/osx_64"
|
||||||
|
appNewVersion=$(curl -fsL --head "${downloadURL}" | grep "content-disposition:" | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\).*$/\1/')
|
||||||
|
fi
|
||||||
expectedTeamID="H7H8Q7M5CK"
|
expectedTeamID="H7H8Q7M5CK"
|
||||||
;;
|
;;
|
||||||
Reference in New Issue
Block a user