Skip to content

Commit

Permalink
updated check to match get
Browse files Browse the repository at this point in the history
  • Loading branch information
immauss committed Jul 24, 2023
1 parent d3ca83f commit b9a28f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/check-gvm-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RC=$(mktemp)
# Source the api token
. .token
#
for repo in pg-gvm notus-scanner gvmd openvas openvas-smb gvm-libs openvas-scanner gsa ospd ospd-openvas ; do
for repo in pg-gvm notus-scanner gvmd openvas openvas-smb gvm-libs openvas-scanner gsa gsad ospd ospd-openvas ; do
VERSION=$(curl -s -H "Authorization: token $Oauth" -L https://api.github.com/repos/greenbone/$repo/releases/latest | jq -r ".assets[].browser_download_url" | sed "s/^.*download\/\(v.*\)\/.*$/\1/" | head -1)
#echo "$repo current version is $VERSION"
VAR=$( echo $repo | tr - _ )
Expand Down

0 comments on commit b9a28f1

Please sign in to comment.