From 84e83ac37e652baa686648f1bfb4215e2c0dd206 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 6 Jul 2017 19:11:46 +0200 Subject: [PATCH] tests: aux.sh replace sed call Use internal shell vars manips --- test/lib/aux.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 6ac57d4e2..e31c4d7ee 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -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 } -- 2.43.5