Skip to content

Commit 9cedb11

Browse files
committed
Fix shellcheck warning.
1 parent bba8bb1 commit 9cedb11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/sbin/snmpd-smartctl-connector

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function send_device_attr
142142

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

0 commit comments

Comments
 (0)