<p>Running '$ shellcheck plugins-scripts/check_log.sh' results into the following result:</p>

<p>In plugins-scripts/check_log.sh line 61:<br>
PATH="@TRUSTED_PATH@"<br>
^-- SC2123: PATH is the shell search path. Use another name.</p>

<p>In plugins-scripts/check_log.sh line 63:<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_log.sh line 64:<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_log.sh line 67:<br>
. $PROGPATH/utils.sh<br>
  ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 76:<br>
    print_revision $PROGNAME $REVISION<br>
                   ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 90:<br>
    exit $STATE_UNKNOWN<br>
         ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 103:<br>
            exit $STATE_OK<br>
                 ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 107:<br>
            exit $STATE_OK<br>
                 ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 110:<br>
            print_revision $PROGNAME $REVISION<br>
                           ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 111:<br>
            exit $STATE_OK<br>
                 ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 114:<br>
            print_revision $PROGNAME $REVISION<br>
                           ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 115:<br>
            exit $STATE_OK<br>
                 ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 152:<br>
            exit $STATE_UNKNOWN<br>
                 ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 160:<br>
if [ ! -e $logfile ]; then<br>
          ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 162:<br>
    exit $STATE_UNKNOWN<br>
         ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 163:<br>
elif [ ! -r $logfile ] ; then<br>
            ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 165:<br>
    exit $STATE_UNKNOWN<br>
         ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 172:<br>
if [ ! -e $oldlog ]; then<br>
          ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 173:<br>
    cat $logfile > $oldlog<br>
        ^-- SC2086: Double quote to prevent globbing and word splitting.<br>
                   ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 175:<br>
    exit $STATE_OK<br>
         ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 183:<br>
    tempdiff=<code>/bin/mktemp /tmp/check_log.XXXXXXXXXX</code><br>
             ^-- SC2006: Use $(..) instead of legacy <code>..</code>.</p>

<p>In plugins-scripts/check_log.sh line 185:<br>
    tempdiff=<code>/bin/date '+%H%M%S'</code><br>
             ^-- SC2006: Use $(..) instead of legacy <code>..</code>.</p>

<p>In plugins-scripts/check_log.sh line 187:<br>
    touch $tempdiff<br>
          ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 188:<br>
    chmod 600 $tempdiff<br>
              ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 191:<br>
diff $logfile $oldlog | grep -v "^>" > $tempdiff<br>
     ^-- SC2086: Double quote to prevent globbing and word splitting.<br>
              ^-- SC2086: Double quote to prevent globbing and word splitting.<br>
                                       ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 194:<br>
count=<code>grep -c "$query" $tempdiff</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_log.sh line 197:<br>
lastentry=<code>grep "$query" $tempdiff | tail -1</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_log.sh line 199:<br>
rm -f $tempdiff<br>
      ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 200:<br>
cat $logfile > $oldlog<br>
    ^-- SC2086: Double quote to prevent globbing and word splitting.<br>
               ^-- SC2086: Double quote to prevent globbing and word splitting.</p>

<p>In plugins-scripts/check_log.sh line 210:<br>
exit $exitstatus<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/1366">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2cA_t7rLt9LaiWvDfl3NsxaA5k64ks5o4kR8gaJpZM4GI31i.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/1366"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>