From 89af14bf3f8d0d0c036e4d2a146354397ca71912 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 16 Jan 2024 14:39:05 -0700 Subject: [PATCH] bins/update-openssh: fix fetching of xml --- bin/update-openssh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/update-openssh b/bin/update-openssh index 4c95787..37ef896 100755 --- a/bin/update-openssh +++ b/bin/update-openssh @@ -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}')"