Skip to content

Commit 4dbe92e

Browse files
authored
Merge pull request #2075 from NariyasuHeseri/awk_unterminated_regexp
helpers: fix `awk: unterminated regexp`
2 parents 578c702 + 1e77c26 commit 4dbe92e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/helpers.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ function _bash-it-update-() {
326326
fi
327327

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

0 commit comments

Comments
 (0)