Fix command substitution
Environment Setup Test / Setup (push) Successful in 1m7s Details

pull/4/head
drunkendog 2023-08-27 21:37:15 +01:00
parent 2442f2eed6
commit 2d3f1806f3
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
set -e
download_version=curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.name'
download_url=curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.assets | .[] | select(.name == "borg-linux64") | .browser_download_url'
download_version=$(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.name')
download_url=$(curl -s https://api.github.com/repos/borgbackup/borg/releases/latest | jq -r '.assets | .[] | select(.name == "borg-linux64") | .browser_download_url')
echo "Version: $download_version"
echo "URL: $download_url"