1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

tests: fix use of double apostrophes in get

Need to put "" around parameters.
This commit is contained in:
Zdenek Kabelac 2014-06-05 13:05:36 +02:00
parent 1b59f5a99c
commit 21db25b3c4

View File

@ -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() {