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

tests: aux.sh replace sed call

Use internal shell vars manips
This commit is contained in:
Zdenek Kabelac 2017-07-06 19:11:46 +02:00
parent 928a49a7c8
commit 84e83ac37e

View File

@ -960,8 +960,7 @@ disable_dev() {
done
test -n "$silent" || for num in $notify; do
notify_lvmetad --major "$(echo "$num" | sed -e "s,:.*,,")" \
--minor "$(echo "$num" | sed -e "s,.*:,,")"
notify_lvmetad --major "${num%%:*}" --minor "${num##*:}"
done
}