Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: edit.sh

Issue 29761555: #8852 - ldap sync output filter (Closed)
Patch Set: #8852 - ldap sync output filter Created June 5, 2018, 1:59 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | output.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 # Filter out uninformative output lines from the ldap-sync cron job script
4
5 last_updated=""
6
7 while read line; do
8 case "$line" in
9 *Updating*|*Creating*)
10 last_updated="$line"
11 ;;
12 *-\>*)
mathias 2018/06/05 14:32:19 Is there ever a case where we could encounter mult
13 echo "$last_updated"
14 echo "$line"
15 ;;
16 *Found* | \
17 *\#* | \
18 *Synchronizing*)
19 continue
20 ;;
21 *)
22 echo "$line"
23 ;;
24 esac
25 done
OLDNEW
« no previous file with comments | « no previous file | output.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld