From 408ff5e0be48fc39774547c17071dead4d5a7c4d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 19 May 2024 06:44:49 -0600 Subject: [PATCH] bin/update-openssh: include comment in commit message --- bin/update-openssh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/update-openssh b/bin/update-openssh index ff44c6e..9735430 100755 --- a/bin/update-openssh +++ b/bin/update-openssh @@ -25,8 +25,11 @@ if [ "${CURRENT_COMMIT}" != "${COMMIT}" ]; then --arg c "${COMMENT}" \ '. |= . + {"version": $v, "comment": $c}' \ > pkgs/openssh/version.json - echo "Updated to '${COMMIT}': '${COMMENT}'" - git add pkgs/openssh/version.json && git commit -m "pkgs/openssh: update to ${COMMIT}" + FN=$(mktemp) + echo "Updated to '${COMMIT}': '${COMMENT}'" > ${FN} + echo >> ${FN} + echo "${COMMENT}" >> ${FN} + git add pkgs/openssh/version.json && git commit -F $FN else echo "No updates." fi