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