Skip to content

Instantly share code, notes, and snippets.

@andrewmundellsophos
Last active July 17, 2020 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewmundellsophos/17ea7cd7614fc61c3046e64586c4186b to your computer and use it in GitHub Desktop.
Save andrewmundellsophos/17ea7cd7614fc61c3046e64586c4186b to your computer and use it in GitHub Desktop.
--Tested and working as of 2020-07-17
select
version as Current,
(
select
substr(
result,(
(
select
instr(result, 'Current Version ')
from
curl
where
url = 'https:' || '/' || '/' || 'notepad-plus-plus.org'
) + 16
),
5
) as Latest
from
curl
where
url = 'https:' || '/' || '/' || 'notepad-plus-plus.org'
) as Latest
from
programs
where
name like '%notepad++%'
and version < (
select
substr(
result,(
(
select
instr(result, 'Current Version ')
from
curl
where
url = 'https:' || '/' || '/' || 'notepad-plus-plus.org'
) + 21
),
6
) as Latest
from
curl
where
url = 'https:' || '/' || '/' || 'notepad-plus-plus.org'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment