bin/update-openssh: add back version param

This commit is contained in:
Aaron Bieber 2023-09-06 07:23:30 -06:00
parent 49851a5ce3
commit e0b2efb23a
No known key found for this signature in database

View File

@ -11,8 +11,10 @@ CURRENT_COMMIT="$(echo $CURRENT | jq -r .rev)"
if [ "${CURRENT_COMMIT}" != "${COMMIT}" ]; then
nix-prefetch-github openssh openssh-portable \
-rev "${COMMIT}" \
--json > pkgs/openssh/version.json
--rev "${COMMIT}" \
--json | \
jq -r --arg v "${UPDATED}" '. |= . + {"version": $v}' \
> pkgs/openssh/version.json
else
echo "No updates."
fi