scripts/bin/update-checksum: fix generation of commit message

This commit is contained in:
Leonid Pliushch 2020-06-21 17:36:38 +03:00
parent 3820d1cae1
commit c086de3165

View File

@ -81,13 +81,13 @@ for package in "${@}"; do
git diff --patch "${buildsh_path}"
echo "--------------------"
echo
echo "${1}: update to $(. "${buildsh_path}"; echo "${TERMUX_PKG_VERSION}")"
echo "${package}: update to $(. "${buildsh_path}"; echo "${TERMUX_PKG_VERSION}" | cut -d: -f2-)"
echo
read -re -p "Do you want to commit changes ? (y/n) " CHOICE
echo
if [[ ${CHOICE} =~ (Y|y) ]]; then
git add "${buildsh_path}"
git commit -m "${package}: update to $(. "${buildsh_path}"; echo "${TERMUX_PKG_VERSION}")"
git commit -m "${package}: update to $(. "${buildsh_path}"; echo "${TERMUX_PKG_VERSION}" | cut -d: -f2-)"
else
echo "Not committing to Git!"
fi