From b07a6bbe9e18cd84de86b2515ea9115a73e241ea Mon Sep 17 00:00:00 2001 From: "Brian T. Smith" Date: Fri, 2 Sep 2016 01:56:30 -0500 Subject: [PATCH] Corrected use of port variable by adding $ prefix. --- specs/probe-ib_srpt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/probe-ib_srpt.sh b/specs/probe-ib_srpt.sh index cd58bc8..cdaf5a4 100755 --- a/specs/probe-ib_srpt.sh +++ b/specs/probe-ib_srpt.sh @@ -45,7 +45,7 @@ fi for port in "${ports}"; do # Transform 'fe80:0000:0000:0000:0002:1903:000e:8acd' WWN notation to # '0xfe800000000000000002c903000e8acd' - wwns="${wwns} $(cat port | sed -e s/fe80/0xfe80/ -e 's/\://g')" + wwns="${wwns} $(cat $port | sed -e s/fe80/0xfe80/ -e 's/\://g')" done echo "---" 1>&2