mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-03 22:04:30 +01:00
Merge pull request #566 from FletcherS7/update-notion-label
Update Notion label to fix wrong version detection on arm installs
This commit is contained in:
@@ -4,9 +4,10 @@ notion)
|
|||||||
type="dmg"
|
type="dmg"
|
||||||
if [[ $(arch) == "arm64" ]]; then
|
if [[ $(arch) == "arm64" ]]; then
|
||||||
downloadURL="https://www.notion.so/desktop/apple-silicon/download"
|
downloadURL="https://www.notion.so/desktop/apple-silicon/download"
|
||||||
|
appNewVersion=$( curl -fsIL "https://www.notion.so/desktop/apple-silicon/download" | grep -i "^location" | awk '{print $2}' | sed -e 's/.*Notion\-\(.*\)\-arm64.dmg.*/\1/' )
|
||||||
elif [[ $(arch) == "i386" ]]; then
|
elif [[ $(arch) == "i386" ]]; then
|
||||||
downloadURL="https://www.notion.so/desktop/mac/download"
|
downloadURL="https://www.notion.so/desktop/mac/download"
|
||||||
|
appNewVersion=$( curl -fsIL "https://www.notion.so/desktop/mac/download" | grep -i "^location" | awk '{print $2}' | sed -e 's/.*Notion\-\(.*\).dmg.*/\1/' )
|
||||||
fi
|
fi
|
||||||
appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "^location" | awk '{print $2}' | tr -d '\r\n' | sed -E 's/.*\/[a-zA-Z]*-([0-9.]*)\..*/\1/g' )
|
|
||||||
expectedTeamID="LBQJ96FQ8D"
|
expectedTeamID="LBQJ96FQ8D"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user