From 077826437fafbe63915bb66d39c393ec37d95156 Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 7 Feb 2022 15:15:09 +0100 Subject: [PATCH] progress --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index ecc0b25..97dcbb2 100644 --- a/main.sh +++ b/main.sh @@ -29,7 +29,7 @@ target_phy_id() { local i local f2 set -x - for i in $(find /dev/disk/by-id|grep -v part); do + for i in $(find /dev/disk/by-id ! -type d|grep -v part); do if realpath "$i" | grep -q -i "$TARGET_PHY_DISK"; then if echo "$i" | grep -q -v "wwn" | grep -q -v "eui"; then TARGET_PHY_ID="$i"