On Tue, Apr 20, 2021 at 02:52:17PM +0800, Luan Shengde wrote:
On Tue, Apr 20, 2021 at 11:13:25AM +0800, Bai Jing wrote:
Signed-off-by: Bai Jing 799286817@qq.com
tests/host-info | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/host-info b/tests/host-info index 86b49cf9a..af0ab5777 100755 --- a/tests/host-info +++ b/tests/host-info @@ -58,7 +58,8 @@ get_part() count=$(echo $info | tr ' ' '\n' | wc -l)
add '"' for $info and no need to do the tr
Ok
Thanks, Baijing
partition=$(echo $info | tr ' ' '\n' | uniq) if [ $count -gt 1 ]; then
parts=$(echo /dev/disk/by-id/$partition-part*)
parts=$(ls /dev/disk/by-id/$partition-part*)
echo " -" /dev/disk/by-id/$partition for i in $parts do echo " -" $i
-- 2.23.0