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 May 23, 2018, 12:15 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 # Filtering out uninformative output lines from the ldap-sync cron job script
f.lopez 2018/05/29 21:18:48 I don't think this script is only for cron jobs, e
4
5 last_updated=""
6
7 while read line; do
8
f.lopez 2018/05/29 21:18:49 be consistent here, either always use a blank line
9 case $line in
10
f.lopez 2018/05/29 21:18:48 not blank lines here either
11 *Updating*|*Creating*)
12 last_updated="$line"
13 ;;
14
f.lopez 2018/05/29 21:18:48 not blank lines between each option either
15 *-\>*)
16 echo $last_updated
f.lopez 2018/05/29 21:18:48 this is a regression, I mentioned in the first cod
17 echo $line
18 ;;
19
20 *Found*|*\#*|*Synchronizing*)
f.lopez 2018/05/29 21:18:48 We always avoid modifying unrelated changes, in th
21 continue
22 ;;
23
24 *)
25 echo $line
26 ;;
27 esac
28 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