Some recomentations
Hi @ptoharia,
I have some small bugfixes and recommendations to your gitlabChangelogGen.sh script
-
I'm pretty sure that line 4 should use
2>&1
and not2>1
-
You are creating a temporally file named ".LOG", that should be deleted at the end of the script.
-
Even better that create ".LOG" and delete at the end, is the use of a string variable. Is faster, is safer and better in many senses.
Instead of this:
LOG=.__LOG__
git log 2>1 > ${LOG}
for mrLine in `cat ${LOG} | grep See -n | cut -d: -f1`;
do
...
done
try this:
LOG=$(git log 2>&1 )
for mrLine in `echo "${LOG}" | grep See -n | cut -d: -f1`;
do
...
done