Merge pull request #2075 from NariyasuHeseri/awk_unterminated_regexp

helpers: fix `awk: unterminated regexp`
pull/2069/head
Noah Gorny 2022-02-04 11:52:21 +02:00 committed by GitHub
commit 4dbe92e38d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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