diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-10-16 23:44:45 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-10-16 23:49:35 +0200 |
commit | 69bebfd9587e2db292051501d1a1e83d4f4564a5 (patch) | |
tree | dbede7721a0a730e5b992c6b17f922230be51c25 | |
parent | f1ac72c84804aa1c00aa385caec9eb007fd39aee (diff) | |
download | lvm2-69bebfd9587e2db292051501d1a1e83d4f4564a5.tar.gz |
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'.
-rw-r--r-- | test/lib/aux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index c3aeb436f..c75ca6df6 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -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 |