Files
backrest/scripts/latest-restic-version.sh

6 lines
230 B
Bash
Executable File

#!/bin/bash
curl -s https://api.github.com/repos/restic/restic/releases/latest \
| grep "https://api.github.com/repos/restic/restic/tarball/" \
| sed -E 's/.*v([0-9]+\.[0-9]+\.[0-9]+).*/\1/' # extract just the version number