There needs to be a $ added after the round bracket in line 38. Otherwise the regular expression matches "commit" (and possibly other commands) and leads to a broken editor when committing without using '-m'.
< if [[ "$1" =~ ^($ACTIONS) ]]> if [[ "$1" =~ ^($ACTIONS)$ ]]
Tried committing with 'nano' and 'vim' as editor, both worked with the fix.
There needs to be a
$
added after the round bracket in line 38. Otherwise the regular expression matches "commit" (and possibly other commands) and leads to a broken editor when committing without using '-m'.< if [[ "$1" =~ ^($ACTIONS) ]]
> if [[ "$1" =~ ^($ACTIONS)$ ]]
Tried committing with 'nano' and 'vim' as editor, both worked with the fix.