1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

tests: fix conf generation with older shells

For shells without array support, fix selecting bug,
and require keyword to end with some 'space' char,
so  'scan' is not matched with  'scan_var'.
This commit is contained in:
Zdenek Kabelac 2018-10-16 23:44:45 +02:00
parent f1ac72c848
commit 69bebfd958

View File

@ -1213,7 +1213,7 @@ EOF
echo "$s {"
local k
for k in $(grep ^"$s"/ "$config_values" | cut -f1 -d= | sed -e 's, *$,,' | sort | uniq); do
grep "^$k" "$config_values" | tail -n 1 | sed -e "s,^$s/, ," || true
grep "^$k[ \t]" "$config_values" | tail -n 1 | sed -e "s,^$s/, ," || true
done
echo "}"
echo