1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-09 12:58:41 +03:00

tests: check.sh using grep -F

fgrep is non-standard and deprecated. Use grep -F instead.
This commit is contained in:
Zdenek Kabelac 2017-06-29 08:41:43 +02:00
parent 824db54128
commit c0197040a5

View File

@ -148,7 +148,7 @@ mirror_nonredundant() {
attr=$(get lv_field "$lv" attr)
(echo "$attr" | grep "^......m...$" >/dev/null) || {
if (echo "$attr" | grep "^o.........$" >/dev/null) &&
lvs -a | fgrep "[${2}_mimage" >/dev/null; then
lvs -a | grep -F "[${2}_mimage" >/dev/null; then
echo "TEST WARNING: $lv is a snapshot origin and looks like a mirror,"
echo "assuming it is actually a mirror"
else