bins/update-openssh: fix fetching of xml

This commit is contained in:
Aaron Bieber 2024-01-16 14:39:05 -07:00
parent 4506f1178f
commit 89af14bf3f
No known key found for this signature in database

View File

@ -1,6 +1,8 @@
#!/bin/sh
ATOM="$(curl -s https://github.com/openssh/openssh-portable/commits/master.atom)"
set -e
ATOM="$(curl -H "Accept: application/atom+xml" -s https://github.com/openssh/openssh-portable/commits/master.atom)"
CURRENT="$(cat pkgs/openssh/version.json)"
COMMIT="$(echo $ATOM | dasel -rxml 'feed.entry.[0].id' | awk -F/ '{print $NF}')"