mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: fix use of double apostrophes in get
Need to put "" around parameters.
This commit is contained in:
parent
1b59f5a99c
commit
21db25b3c4
@ -28,15 +28,18 @@ trim_() {
|
||||
}
|
||||
|
||||
pv_field() {
|
||||
trim_ "$(pvs --config 'log{prefix=""}' --noheadings -o $2 ${@:3} $1)"
|
||||
local r=$(pvs --config 'log{prefix=""}' --noheadings -o "$2" "${@:3}" "$1")
|
||||
trim_ "$r"
|
||||
}
|
||||
|
||||
vg_field() {
|
||||
trim_ "$(vgs --config 'log{prefix=""}' --noheadings -o $2 ${@:3} $1)"
|
||||
local r=$(vgs --config 'log{prefix=""}' --noheadings -o "$2" "${@:3}" "$1")
|
||||
trim_ "$r"
|
||||
}
|
||||
|
||||
lv_field() {
|
||||
trim_ "$(lvs --config 'log{prefix=""}' --noheadings -o $2 ${@:3} $1)"
|
||||
local r=$(lvs --config 'log{prefix=""}' --noheadings -o "$2" "${@:3}" "$1")
|
||||
trim_ "$r"
|
||||
}
|
||||
|
||||
lv_devices() {
|
||||
|
Loading…
Reference in New Issue
Block a user