mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +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() {
|
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() {
|
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() {
|
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() {
|
lv_devices() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user