summaryrefslogtreecommitdiffstats
path: root/modules.d/95fcoe/fcoe-edd.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmodules.d/95fcoe/fcoe-edd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.d/95fcoe/fcoe-edd.sh b/modules.d/95fcoe/fcoe-edd.sh
index 17f8a7c..ece31ba 100755
--- a/modules.d/95fcoe/fcoe-edd.sh
+++ b/modules.d/95fcoe/fcoe-edd.sh
@@ -34,7 +34,7 @@ for disk in /sys/firmware/edd/int13_*; do
fi
for nic in "${disk}"/pci_dev/net/*; do
[ -d "$nic" ] || continue
- if [ -n "${dev_port}" -a -e "${nic}/dev_port" ]; then
+ if [ -n "${dev_port}" ] && [ -e "${nic}/dev_port" ]; then
if [ "$(cat "${nic}"/dev_port)" -ne "${dev_port}" ]; then
continue
fi