Skip to content

Commit

Permalink
bug: Fix prepare-commit-msg to work on both GNU and BSD sed rucio#6452
Browse files Browse the repository at this point in the history
  • Loading branch information
rdimaio authored and bari12 committed Jan 12, 2024
1 parent 52057a8 commit 488d47b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else
if echo $EDITMSG | grep "# Please enter the commit message for your changes.*"
then
echo "No commit message given, preparing template for editing."
sed -i "1s/^/\#\<component\>: \<message\>; Fix \#$NUMBER\n/" $1
sed -i.bak "1s/^/\#\<component\>: \<message\>; Fix \#$NUMBER\n/" $1 && rm $1.bak
else
echo "Using CLI commit message."
fi
Expand Down

0 comments on commit 488d47b

Please sign in to comment.