-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inform user when addon is outdated #21
Conversation
scripts/check-addon
Outdated
STARS='**********************************' | ||
|
||
ADDONVER=$(ddev add-on list --json-output --installed | jq -r '.raw[] | select(.Name=="annertech-ddev") | .Version') | ||
LATESTVER=$(ddev exec curl -sL https://api.github.com/repos/annertech/annertech-ddev/releases/latest | ddev exec jq -r \".tag_name\") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that!
I see |
Yeah. I wonder whether it could be turned-around to force it to run on the web container and simplify those commands. |
I hate escaping quotes! Spotted that the first |
Escaping from reserved character prison!
Looks like we need to run this on the host and call |
It's tricky...
|
cc @vzsigmond |
Adds a post-start script which checks installed version of addon vs github latest and reports back to user.