1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: shellcheck split assing

Keep possibly error unmasked by assign
This commit is contained in:
Zdenek Kabelac 2018-03-23 17:03:00 +01:00
parent 397b7891ff
commit 1507956383

View File

@ -1107,7 +1107,9 @@ prepare_vg() {
} }
extend_filter() { extend_filter() {
local filter=$(grep ^devices/global_filter CONFIG_VALUES | tail -n 1) local filter
filter=$(grep ^devices/global_filter CONFIG_VALUES | tail -n 1)
for rx in "$@"; do for rx in "$@"; do
filter=$(echo "$filter" | sed -e "s:\\[:[ \"$rx\", :") filter=$(echo "$filter" | sed -e "s:\\[:[ \"$rx\", :")
done done
@ -1119,7 +1121,9 @@ extend_filter_LVMTEST() {
} }
hide_dev() { hide_dev() {
local filter=$(grep ^devices/global_filter CONFIG_VALUES | tail -n 1) local filter
filter=$(grep ^devices/global_filter CONFIG_VALUES | tail -n 1)
for dev in "$@"; do for dev in "$@"; do
filter=$(echo "$filter" | sed -e "s:\\[:[ \"r|$dev|\", :") filter=$(echo "$filter" | sed -e "s:\\[:[ \"r|$dev|\", :")
done done
@ -1127,7 +1131,9 @@ hide_dev() {
} }
unhide_dev() { unhide_dev() {
local filter=$(grep ^devices/global_filter CONFIG_VALUES | tail -n 1) local filter
filter=$(grep ^devices/global_filter CONFIG_VALUES | tail -n 1)
for dev in "$@"; do for dev in "$@"; do
filter=$(echo "$filter" | sed -e "s:\"r|$dev|\", ::") filter=$(echo "$filter" | sed -e "s:\"r|$dev|\", ::")
done done