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