1
0
mirror of https://github.com/sstephenson/bats.git synced 2024-12-26 14:39:46 +01:00

Update bats-preprocess

This commit is contained in:
Francois Laupretre 2019-01-08 10:49:27 +01:00 committed by GitHub
parent 3e28a098ad
commit ffaf48f3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ while IFS= read -r line; do
let index+=1 let index+=1
if [[ "$line" =~ $pattern ]]; then if [[ "$line" =~ $pattern ]]; then
quoted_name="${BASH_REMATCH[3]}" quoted_name="${BASH_REMATCH[3]}"
if [ -n "${BASH_REMATCH[2]}" ; then if [ -n "${BASH_REMATCH[2]}" ] ; then
encoded_name="test_${BASH_REMATCH[2]}" encoded_name="test_${BASH_REMATCH[2]}"
else else
name="$(eval echo "$quoted_name")" name="$(eval echo "$quoted_name")"