Skip to content

Commit

Permalink
helpers: fix awk: unterminated regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
NariyasuHeseri committed Jan 31, 2022
1 parent 578c702 commit 1e77c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function _bash-it-update-() {
fi

for i in $(git rev-list --merges --first-parent "${revision}"); do
num_of_lines=$(git log -1 --format=%B "$i" | awk '!/^[[:space:]]*$ {++i} END{print i}')
num_of_lines=$(git log -1 --format=%B "$i" | awk '!/^[[:space:]]*$/ {++i} END{print i}')
if [[ "$num_of_lines" -eq 1 ]]; then
description="%s"
else
Expand Down

0 comments on commit 1e77c26

Please sign in to comment.