From 21db25b3c41dec54da2a6975bf3f3f52b151f1e7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 5 Jun 2014 13:05:36 +0200 Subject: [PATCH] tests: fix use of double apostrophes in get Need to put "" around parameters. --- test/lib/get.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/lib/get.sh b/test/lib/get.sh index babc4c9be..b6fbf822e 100644 --- a/test/lib/get.sh +++ b/test/lib/get.sh @@ -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() { -- 2.43.5