wip
This commit is contained in:
parent
5035f7d691
commit
aeca1cf43f
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue