lagrange: updated watch script

This commit is contained in:
John McQuah 2024-06-07 11:46:20 +00:00
parent 7b1b6a8179
commit 569a34c201

View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
curl -s "https://github.com/skyjake/lagrange/releases" \ lynx -dump "https://github.com/skyjake/lagrange/releases" \
| awk '/<h2 class=.sr-only/ {$0=gensub(/<h2 .*v(.+)<.*/,"\\1",1); print;}' \ | awk '/^v[0-9]+/ {$0=gensub(/^v([^\s]*).*/,"\\1",1); print;}' \
| head -n 1 | head -n 1