summaryrefslogtreecommitdiff
path: root/manualPorts/journalctl/lastVersion.sh
blob: d5c5afd52d782b4df6e344e1f326e14b5b923b61 (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/v\([0-9.]\+\)\.tar\.gz$,\1,
    t
    d
  ' | \
  sort -V | \
  tail -n1