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:
parent
f1ac72c848
commit
69bebfd958
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user