Commit b72e4335 authored by Vitaly Lipatov's avatar Vitaly Lipatov

spec: fix remove_bashism (add check for {,}

parent 4c91ff2b
......@@ -348,7 +348,7 @@ remove_bashism()
# {1,2} translation
# FIXME: miss first spaces
while read -r n ; do
echo "$n" | grep -v "{.*}" && continue
echo "$n" | grep -v "{.*,.*}" && continue
rs="$(echo "$n" | perl -pe "s|.*\s(.*?{.*?}.*?)\s.*|\1|g" )"
res=$(eval echo "$rs")
echo "$n" | perl -pe "s|$rs|$res|g"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment