Skip to content

Commit

Permalink
fix string interpolation in bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsEckart committed Apr 24, 2024
1 parent 0534e1a commit 96eb840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githooks/prepare-commit-msg-james
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MESSAGE=$(cat $FILE)
TICKET=$(git rev-parse --abbrev-ref HEAD | grep -Eo '^(\w+/)?\w+[-_][0-9]+' | grep -Eo '\w+[-][0-9]+' | tr "[:lower:]" "[:upper:]")

# Define the Co-Author information
CO_AUTHOR="\n\n\nCo-Authored-By: James Skarzinskas <james@jskarzin.org>"
CO_AUTHOR=$'\n\n\nCo-Authored-By: James Skarzinskas <james@jskarzin.org>'

if [[ $TICKET == "" ]]; then
echo 'Branch name without ticket information, keeping git message as is.'
Expand Down

0 comments on commit 96eb840

Please sign in to comment.