robjschroeder / App-Auto-Patch

Auto patch management script via Dialog

Home Page:https://techitout.xyz/app-auto-patch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App-Auto-Patch stopped by a broken appNewVersion label

Apfelpom opened this issue · comments

I've got a bad math operator with the new version 2.0.0b7 and a broken label, then the script stops:

[NOTICE] Searching for Cloudya.app
[INFO] Found Cloudya.app version 1.7.0
[INFO] Update swiftDialog: message: Analyzing Cloudya
[NOTICE] Label: cloudya
[NOTICE] --- found app at /Applications/Cloudya.app
[NOTICE] Verifying: /Applications/Cloudya.app
[INFO] Update swiftDialog: progresstext: Verifying /Applications/Cloudya.app
[NOTICE] --- Installed version: 1.7.0
[NOTICE] --- Newest version: 1.7.0
1.7.0
verifyApp:77: bad math expression: operator expected at `1007000000'

Looking at the cloudya label, the appNewVersion finds the version twice:

curl -fs https://www.nfon.com/de/service/downloads | grep -i -E -o "Cloudya Desktop App MAC [0-9.]*" | sed 's/^.*\ \([^ ]\{0,7\}\)$/\1/g'
1.7.0
1.7.0

It could probably be fixed with the right appNewVersion, but maybe App-Auto-Patch shouldn't stop, but continue with the next label like the previous version.

Reverted the crazy math for now.