diff options
author | Christoph Berg | 2016-05-31 20:18:32 +0000 |
---|---|---|
committer | Christoph Berg | 2016-05-31 20:18:32 +0000 |
commit | b1d09afd1d89987b7aa6bab51bde4b264488527b (patch) | |
tree | 8e2c5430bb59abb1b2035a81d8f50b0e289117d1 /check_postgres.pl | |
parent | b91b2bd9eddda02a7a11ab79397d570ff3fa37f4 (diff) |
Remove four more /o flags
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 1a4732a0d..77d532681 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1313,7 +1313,7 @@ our $OUTPUT = lc($opt{output} || ''); if ($opt{get_method}) { my $found = 0; for my $meth (@get_methods) { - if ($meth =~ /^$opt{get_method}/io) { + if ($meth =~ /^$opt{get_method}/i) { @get_methods = ($meth); $found = 1; last; @@ -1344,7 +1344,7 @@ our $DEBUG_INFO = '?'; if (!$OUTPUT) { my $dir = getcwd; - if ($dir =~ /(nagios|mrtg|simple|cacti)/io) { + if ($dir =~ /(nagios|mrtg|simple|cacti)/i) { $OUTPUT = lc $1; } elsif ($opt{simple}) { @@ -1361,7 +1361,7 @@ $opt{transform} = ''; if ($OUTPUT =~ /\b(kb|mb|gb|tb|eb)\b/) { $opt{transform} = uc $1; } -if ($OUTPUT =~ /(nagios|mrtg|simple|cacti)/io) { +if ($OUTPUT =~ /(nagios|mrtg|simple|cacti)/i) { $OUTPUT = lc $1; } ## Check for a valid output setting @@ -1924,7 +1924,7 @@ sub finishup { ## Are we showing DEBUG_INFO? my $showdebug = 0; if ($DEBUGOUTPUT) { - $showdebug = 1 if $DEBUGOUTPUT =~ /a/io + $showdebug = 1 if $DEBUGOUTPUT =~ /a/i or ($DEBUGOUTPUT =~ /c/i and $type eq 'c') or ($DEBUGOUTPUT =~ /w/i and $type eq 'w') or ($DEBUGOUTPUT =~ /o/i and $type eq 'o') |