This commit is contained in:
pika 2025-07-03 15:54:51 +02:00
parent 5035f7d691
commit aeca1cf43f

View file

@ -535,7 +535,14 @@ __git__() {
echo "${CYAN}No changes on the remote branch. Adding changes and pushing with ${RED}${BOLD}'$commit_message'${NC}${CYAN} commit.${NC}"
git add "${commit_files[*]}"
if (("${#commit_files}" <= 1)); then
git add $commit_files
else
for f in "${commit_files[@]}"; do
git add $f
done
fi
git commit -m "${commit_message:-wip}"
git push
else