Skip to content

Commit

Permalink
verify: Fix line counting
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Feb 24, 2025
1 parent 9a2270c commit 613f19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ verify_template() {
## line count must match newline count
# shellcheck disable=SC2046
# shellcheck disable=SC3003
if [ $(wc -l "${_path}" | awk '{print $1}') -ne $(grep -c $'\n' "${_path}") ]; then
if [ $(wc -l "${_path}" | awk '{print $1}') -ne $(grep -c '\n' "${_path}") ]; then
info "[${_hook}]:"
error_notify "${BASTILLE_TEMPLATE}:${_hook} [failed]."
error_notify "Line numbers don't match line breaks."
Expand Down

0 comments on commit 613f19e

Please sign in to comment.