
21 Apr
2021
21 Apr
'21
5:50 p.m.
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 Thanks, Luan Shengde
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