scripts/bin/update-checksum: fix generation of commit message
This commit is contained in:
parent
3820d1cae1
commit
c086de3165
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user