From 9cedb11d446a11717abb0eff83955336d6bb0102 Mon Sep 17 00:00:00 2001 From: Max Hacking Date: Tue, 21 Jul 2020 20:54:52 +0100 Subject: [PATCH] Fix shellcheck warning. --- usr/sbin/snmpd-smartctl-connector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/sbin/snmpd-smartctl-connector b/usr/sbin/snmpd-smartctl-connector index 7836669..4aa2cf2 100755 --- a/usr/sbin/snmpd-smartctl-connector +++ b/usr/sbin/snmpd-smartctl-connector @@ -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]}"