Skip to content

Commit

Permalink
Merge pull request #2075 from NariyasuHeseri/awk_unterminated_regexp
Browse files Browse the repository at this point in the history
helpers: fix `awk: unterminated regexp`
  • Loading branch information
NoahGorny authored Feb 4, 2022
2 parents 578c702 + 1e77c26 commit 4dbe92e
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 4dbe92e

Please sign in to comment.