Left: | ||
Right: |
OLD | NEW |
---|---|
(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 | |
OLD | NEW |