standard-build/backup/fetch-borg-latest.sh

6 lines
251 B
Bash
Raw Normal View History

2023-08-25 23:05:43 +01:00
#!/bin/sh
set -e
wget -4 -O /usr/local/bin/borg-linux64 $(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest| jq -r '.assets | .[] | select(.name == "borg-linux64") | .browser_download_url')
chmod -v +x /usr/local/bin/borg-linux64