#! /bin/sh
set -eu

commit_message_file="$1"

# Pass if message has 1 or fewer lines
test 1 -ge "$(< $commit_message_file wc --lines)" ||
# Pass if second line is blank
test -z "$(< $commit_message_file head --lines 2 | tail --lines 1)"

#! /bin/sh
set -eu

commit_message_file="$1"

# Pass if message has 1 or fewer lines
test 1 -ge "$(< $commit_message_file wc -l)" ||
# Pass if second line is blank
test -z "$(< $commit_message_file head --lines 2 | tail --lines 1)"

Use short option for mac compat
Use short option for mac compat
