From 7f14324b2bfbba894dde5314225c9f9647d6093b Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 7 Feb 2022 15:16:24 +0100 Subject: [PATCH] progress --- main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 97dcbb2..ebdac96 100644 --- a/main.sh +++ b/main.sh @@ -31,7 +31,7 @@ target_phy_id() { set -x 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 + if echo "$i" | grep -v "wwn" | grep -q -v "eui"; then TARGET_PHY_ID="$i" f2=1 fi