From ffaf48f3b7c2c0f6892a6c80bc72b59396efa7c6 Mon Sep 17 00:00:00 2001 From: Francois Laupretre Date: Tue, 8 Jan 2019 10:49:27 +0100 Subject: [PATCH] Update bats-preprocess --- libexec/bats-preprocess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/bats-preprocess b/libexec/bats-preprocess index ef6546f..81fae9c 100755 --- a/libexec/bats-preprocess +++ b/libexec/bats-preprocess @@ -37,7 +37,7 @@ while IFS= read -r line; do let index+=1 if [[ "$line" =~ $pattern ]]; then quoted_name="${BASH_REMATCH[3]}" - if [ -n "${BASH_REMATCH[2]}" ; then + if [ -n "${BASH_REMATCH[2]}" ] ; then encoded_name="test_${BASH_REMATCH[2]}" else name="$(eval echo "$quoted_name")"