From e0b2efb23a03a94a4b93ffbe6243cdf43d76b8dd Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 6 Sep 2023 07:23:30 -0600 Subject: [PATCH] bin/update-openssh: add back version param --- bin/update-openssh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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