<p>Running '$ shellcheck plugins-scripts/check_sensors.sh' results into the following:</p>
<p>In plugins-scripts/check_sensors.sh line 3:<br>
PATH="@TRUSTED_PATH@"<br>
^-- SC2123: PATH is the shell search path. Use another name.</p>
<p>In plugins-scripts/check_sensors.sh line 5:<br>
PROGNAME=<code>basename $0</code><br>
^-- SC2006: Use $(..) instead of legacy <code>..</code>.<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 6:<br>
PROGPATH=<code>echo $0 | sed -e 's,[\\/][^\\/][^\\/]*$,,'</code><br>
^-- SC2006: Use $(..) instead of legacy <code>..</code>.<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 9:<br>
. $PROGPATH/utils.sh<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 16:<br>
print_revision $PROGNAME $REVISION<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 23:<br>
exit $STATE_OK<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 29:<br>
exit $STATE_OK<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 33:<br>
exit $STATE_OK<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 36:<br>
print_revision $PROGNAME $REVISION<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 37:<br>
exit $STATE_OK<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 40:<br>
print_revision $PROGNAME $REVISION<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 41:<br>
exit $STATE_OK<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 44:<br>
sensordata=<code>sensors 2>&1</code><br>
^-- SC2006: Use $(..) instead of legacy <code>..</code>.</p>
<p>In plugins-scripts/check_sensors.sh line 52:<br>
elif echo ${sensordata} | egrep ALARM > /dev/null; then<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 55:<br>
elif echo ${sensordata} | egrep FAULT > /dev/null \<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 66:<br>
echo ${sensordata}<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p>In plugins-scripts/check_sensors.sh line 68:<br>
exit $exit<br>
^-- SC2086: Double quote to prevent globbing and word splitting.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1368">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2QmAO6qNmjnXYrMgV1cej-YsAtwbks5o4kWNgaJpZM4GI3_h.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1368"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>