]> sourceware.org Git - lvm2.git/commitdiff
tests: get.sh use simplier tr
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 10 Jul 2017 09:56:38 +0000 (11:56 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 10 Jul 2017 12:23:53 +0000 (14:23 +0200)
test/lib/get.sh

index 88144c10c5640a47d92cae8ce746a1ea1392031c..e7139dce949a6b532373325241727c42a702f12f 100644 (file)
@@ -68,7 +68,7 @@ lv_devices() {
 }
 
 lv_field_lv_() {
-       lv_field "$1" "$2" -a --unbuffered | sed 's/\[//; s/]//'
+       lv_field "$1" "$2" -a --unbuffered | tr -d []
 }
 
 lv_tree_devices_() {
This page took 0.034583 seconds and 5 git commands to generate.