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

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