Updates over grep_log plugin (W+L)

This commit is contained in:
fbsanchez 2017-02-24 13:16:35 +01:00
parent 8e86861fef
commit d48131179a
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,7 @@ my $Output = 'module';
my $Verbose = 0;
# Index file storage directory, with a trailing '/'
my $Idx_dir=($^O =~ /win/i)?'C:\\':'/tmp/';
my $Idx_dir=($^O =~ /win/i)?'.\\':'/tmp/';
# Log file
my $Log_file = '';
@ -59,6 +59,10 @@ my $summary_flag = 0;
# Number of coincidences found
my $coincidences = 0;
if ( (defined ($ENV{GREP_LOG_TMP})) && (-d $ENV{GREP_LOG_TMP}) ) {
$Idx_dir=$ENV{GREP_LOG_TMP};
}
########################################################################################
# Erase blank spaces before and after the string
########################################################################################