diff --git a/bin/update-openssh b/bin/update-openssh index 60faa65..7033c85 100755 --- a/bin/update-openssh +++ b/bin/update-openssh @@ -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