sigonasr2, Sig, Sigo d8bb3d6dd9 Fixed cached loop
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2023-09-22 13:49:00 +00:00

21 lines
407 B
Bash
Executable File

#Adds a commit message and pushes project to github repository.
#C++
COMMIT_MESSAGE="$*"
FIRST_LINE=true
while IFS= read -r line
do
if [ "$FIRST_LINE" = true ]; then
COMMIT_MESSAGE+="
Co-authored-by: $line"
FIRST_LINE=false
else
COMMIT_MESSAGE+="
Co-authored-by: $line"
fi
done < utils/.coauthors
git config --global credential.helper store
git add -u
git add *
git commit -m "$COMMIT_MESSAGE"
git push