summaryrefslogtreecommitdiff
path: root/manualPorts/journalctl/lastVersion.sh
blob: 319ae02ae389b7a219b440de48a460e09b74cb70 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

curl -s 'https://github.com/systemd/systemd-stable/releases/' | \
  tr '<>"' '\n' | \
  sed '
    s,^/systemd/systemd-stable/archive/refs/tags/v\([0-9.]\+\)\.tar\.gz$,\1,
    t
    d
  ' | \
  sort -V | \
  tail -n1