bin/update-openssh: include comment in commit message

This commit is contained in:
Aaron Bieber 2024-05-19 06:44:49 -06:00
parent 8a8af2b89c
commit 408ff5e0be
No known key found for this signature in database

View File

@ -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