Skip to content
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

Custom checks #30

Closed
z3ntu opened this issue Sep 24, 2018 · 1 comment
Closed

Custom checks #30

z3ntu opened this issue Sep 24, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@z3ntu
Copy link
Contributor

z3ntu commented Sep 24, 2018

I have a few packages that are hosted on other sites and it would be great if there was a way to make the application run a version check for these packages without hard coding them for everybody.

Providing a URL, CSS selector (or xpath) and regex should be enough I think

Two examples:
http://www.airspayce.com/mikem/bcm2835/ (url & css selector is sufficient as the version is in its own div)
http://aluigi.altervista.org/quickbms.htm (also needs regex as the version isn't in a separate div)

@simon04 simon04 closed this as completed in fc212e6 Sep 6, 2020
@simon04 simon04 added the enhancement New feature or request label Sep 6, 2020
@z3ntu
Copy link
Contributor Author

z3ntu commented Sep 6, 2020

Thanks! Works great!

{
  "scripts": {
    "bcm2835": "curl -s http://www.airspayce.com/mikem/bcm2835/ | grep 'span id=\"projectnumber\"' | grep -o '[0-9]\\+\\.[0-9]\\+'",
    "quickbms": "curl -s http://aluigi.altervista.org/quickbms.htm | grep -o '[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+' | head -n1"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants