mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
test: grep -q may fail and it does
The script runs with pipefail, grep -q exits immediately sending SIGPIPE to lvm segtype which fails whole pipe.
This commit is contained in:
parent
2272a32e6f
commit
46e5908759
@ -1595,7 +1595,7 @@ have_thin() {
|
||||
}
|
||||
|
||||
have_vdo() {
|
||||
lvm segtypes 2>/dev/null | grep vdo$ >/dev/null || {
|
||||
lvm segtypes 2>/dev/null | grep 'vdo$' >/dev/null || {
|
||||
echo "VDO is not built-in." >&2
|
||||
return 1
|
||||
}
|
||||
@ -1603,7 +1603,7 @@ have_vdo() {
|
||||
}
|
||||
|
||||
have_writecache() {
|
||||
lvm segtypes 2>/dev/null | grep -q writecache$ || {
|
||||
lvm segtypes 2>/dev/null | grep 'writecache$' >/dev/null || {
|
||||
echo "writecache is not built-in." >&2
|
||||
return 1
|
||||
}
|
||||
@ -1611,7 +1611,7 @@ have_writecache() {
|
||||
}
|
||||
|
||||
have_integrity() {
|
||||
lvm segtypes 2>/dev/null | grep -q integrity$ || {
|
||||
lvm segtypes 2>/dev/null | grep 'integrity$' >/dev/null || {
|
||||
echo "integrity is not built-in." >&2
|
||||
return 1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user