From 1e77c26c0059742467e787f86de515ac4bcbee5d Mon Sep 17 00:00:00 2001 From: Nariyasu Heseri Date: Mon, 31 Jan 2022 23:54:14 +0900 Subject: [PATCH] helpers: fix `awk: unterminated regexp` --- lib/helpers.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.bash b/lib/helpers.bash index 0ff56af132..66cdec74f2 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -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