Skip to content

Commit

Permalink
fix: from sh to bash
Browse files Browse the repository at this point in the history
  • Loading branch information
munja committed Aug 2, 2022
1 parent d750722 commit 943e174
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .git-hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/sh
#!/bin/bash
RED="\033[1;31m"
GREEN="\033[1;32m"

# Get the commit message (the parameter we're given is just the path to the
# temporary file which holds the message).
commit_message=$(cat "$1")
ischore=$(cut -c 1-15 <<< "$commit_message ")
choretxt=$(cut -c 1-15 <<< "$commit_message")
echo choretxt=$choretxt

# abort processing if this is a changelog release commit
if [[ "$ischore" == "chore(release):" ]]; then
if [[ "$choretxt" = "chore(release):" ]]; then
echo "${GREEN} ✔ Changelog release"
exit 0
fi
Expand Down

0 comments on commit 943e174

Please sign in to comment.