Skip to content

Commit

Permalink
[#95] Fixed parsing of change to lshw report of network components
Browse files Browse the repository at this point in the history
  • Loading branch information
iadgovuser29 committed Feb 18, 2021
1 parent a60c6bf commit ba85846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/hw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ lshwParse () {
numItemsDec=$(printf "%d" "0x"${#items[@]})
for ((i = 0 ; i < numItemsDec ; i++ )); do
matchesType=""
if (printf "${items[$i]}" | grep --quiet -e "^\*-"$type"\?[0-9A-Fa-f]*[[:space:]]*\(DISABLED\)\?$"); then
if (printf "${items[$i]}" | grep --quiet -e "^\*-"$type":\?[0-9A-Fa-f]*[[:space:]]*\(DISABLED\)\?$"); then
matchesType="1"
fi
isPhysical=""
Expand Down

0 comments on commit ba85846

Please sign in to comment.