mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Change appNewVersion
GitHub tag contain “_” and not “.” so our function fails to get the right version, so isolating it out from the `downloadURL`.
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
xcreds)
|
xcreds)
|
||||||
name="XCreds"
|
name="XCreds"
|
||||||
#type="pkgInZip"
|
type="pkg"
|
||||||
#packageID="com.twocanoes.pkg.secureremoteaccess"
|
#packageID="com.twocanoes.pkg.secureremoteaccess"
|
||||||
#downloadURL=$(curl -fs "https://twocanoes.com/products/mac/xcreds/" | grep -ioE "https://.*\.zip" | head -1)
|
#downloadURL=$(curl -fs "https://twocanoes.com/products/mac/xcreds/" | grep -ioE "https://.*\.zip" | head -1)
|
||||||
#appNewVersion=$(curl -fs "https://twocanoes.com/products/mac/xcreds/" | grep -io "Current Version:.*" | sed -E 's/.*XCreds *([0-9.]*)<.*/\1/g')
|
#appNewVersion=$(curl -fs "https://twocanoes.com/products/mac/xcreds/" | grep -io "Current Version:.*" | sed -E 's/.*XCreds *([0-9.]*)<.*/\1/g')
|
||||||
type="pkg"
|
|
||||||
downloadURL="$(downloadURLFromGit twocanoes xcreds)"
|
downloadURL="$(downloadURLFromGit twocanoes xcreds)"
|
||||||
appNewVersion="$(versionFromGit twocanoes xcreds)"
|
#appNewVersion="$(versionFromGit twocanoes xcreds)" # GitHub tag contain “_” and not “.” so our function fails to get the right version
|
||||||
|
appNewVersion=$(echo "$downloadURL" | sed -E 's/.*XCreds_.*-([0-9.]*)\.pkg/\1/')
|
||||||
expectedTeamID="UXP6YEHSPW"
|
expectedTeamID="UXP6YEHSPW"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user