Skip to content

Commit

Permalink
Change check_file_age.pl to use bsd_glob and eliminate the quoting. R…
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Michael Kane committed Jan 4, 2017
1 parent fcfe288 commit 8f83d4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins-scripts/check_file_age.pl
Expand Up @@ -23,6 +23,7 @@

use strict;
use English;
use File::Glob ':glob';
use Getopt::Long;
use File::stat;
use vars qw($PROGNAME);
Expand Down Expand Up @@ -77,12 +78,10 @@
exit $ERRORS{'UNKNOWN'};
}

$opt_f = '"' . $opt_f . '"';

# Check that file(s) exists (can be directory or link)
$perfdata = "";
$output = "";
@filelist = glob($opt_f);
@filelist = bsd_glob($opt_f);

foreach $filename (@filelist) {
unless (-e $filename) {
Expand Down

0 comments on commit 8f83d4e

Please sign in to comment.