Skip to content

Commit

Permalink
Change regex to match "prepend" pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
codeurimpulsif authored and sumpfralle committed Apr 29, 2020
1 parent 8939111 commit 24f4883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/postfix/policyd-spf-python
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fi
#

function get_log_count() {
egrep "policyd-spf\[[0-9]+\]: $1;" "$LOGFILE" | grep "$(date '+%b %e')" | wc -l
egrep "policyd-spf\[[0-9]+\]:(.*) $1" "$LOGFILE" | grep "$(date '+%b %e')" | wc -l
}

PASS=$(get_log_count "Pass")
Expand Down

0 comments on commit 24f4883

Please sign in to comment.