Skip to content

Commit

Permalink
Fix shellcheck warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
HackingM committed Jul 21, 2020
1 parent bba8bb1 commit 9cedb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/sbin/snmpd-smartctl-connector
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function send_device_attr

# Find the entry in above file
# shellcheck disable=SC2207
if VALUES=($(grep -m 1 -E ${1} < "${DEVFNAME}")); then
if VALUES=($(grep -m 1 -E "${1}" < "${DEVFNAME}")); then
if [[ "${2}" == "R" ]]; then
if is_positive_integer "${VALUES[9]}"; then
send_gauge "${3}" "${VALUES[9]}"
Expand Down

0 comments on commit 9cedb11

Please sign in to comment.