bin/update-openssh: add back version param
This commit is contained in:
parent
49851a5ce3
commit
e0b2efb23a
@ -11,8 +11,10 @@ CURRENT_COMMIT="$(echo $CURRENT | jq -r .rev)"
|
|||||||
|
|
||||||
if [ "${CURRENT_COMMIT}" != "${COMMIT}" ]; then
|
if [ "${CURRENT_COMMIT}" != "${COMMIT}" ]; then
|
||||||
nix-prefetch-github openssh openssh-portable \
|
nix-prefetch-github openssh openssh-portable \
|
||||||
-rev "${COMMIT}" \
|
--rev "${COMMIT}" \
|
||||||
--json > pkgs/openssh/version.json
|
--json | \
|
||||||
|
jq -r --arg v "${UPDATED}" '. |= . + {"version": $v}' \
|
||||||
|
> pkgs/openssh/version.json
|
||||||
else
|
else
|
||||||
echo "No updates."
|
echo "No updates."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user