mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
use getJSONValue
replace sed json parsing with getJSONValue
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
cricutdesignspace)
|
||||
name="Cricut Design Space"
|
||||
type="dmg"
|
||||
appNewVersion=$(curl -fsL https://s3-us-west-2.amazonaws.com/staticcontent.cricut.com/a/software/osx-native/latest.json | sed -n 's/^.*"rolloutVersion"[[:space:]]*:[[:space:]]*"\([^"]*\)".*$/\1/p')
|
||||
downloadURL=$(curl -fsL "https://apis.cricut.com/desktopdownload/InstallerFile?shard=a&operatingSystem=osxnative&fileName=CricutDesignSpace-Install-v${appNewVersion}.dmg" | sed -n 's/^.*"result"[[:space:]]*:[[:space:]]*"\([^"]*\)".*$/\1/p')
|
||||
appNewVersion=$(getJSONValue "$(curl -fsL https://s3-us-west-2.amazonaws.com/staticcontent.cricut.com/a/software/osx-native/latest.json)" "rolloutVersion")
|
||||
downloadURL=$(getJSONValue $(curl -fsL "https://apis.cricut.com/desktopdownload/InstallerFile?shard=a&operatingSystem=osxnative&fileName=CricutDesignSpace-Install-v${appNewVersion}.dmg") "result")
|
||||
expectedTeamID="25627ZFVT7"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user