bins/update-openssh: fix fetching of xml
This commit is contained in:
parent
4506f1178f
commit
89af14bf3f
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/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)"
|
CURRENT="$(cat pkgs/openssh/version.json)"
|
||||||
|
|
||||||
COMMIT="$(echo $ATOM | dasel -rxml 'feed.entry.[0].id' | awk -F/ '{print $NF}')"
|
COMMIT="$(echo $ATOM | dasel -rxml 'feed.entry.[0].id' | awk -F/ '{print $NF}')"
|
||||||
|
Loading…
Reference in New Issue
Block a user