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

Delta Between Two Patch Sets: edit.sh

Issue 29768621: #10639 - node-sass output filter (Closed)
Left Patch Set: #10639 - node-sass output filter Created May 14, 2018, 2:57 p.m.
Right Patch Set: #10639 - node-sass output filter Created June 20, 2018, 12:34 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #!/bin/sh 1 #!/bin/sh
2 ########################################################################
3 ########################################################################
4 ## The cause of this script is to make the output of the ##
5 ## node-sass script more readable by filtering all repeated lines ##
6 ########################################################################
7 ########################################################################
8 2
9 while IFS= read -r line; do 3 # Filter out uninformative output lines from the node-sass cron job script
10 if echo "$line" | grep -q -v "Rendering" && 4
11 echo "$line" | grep -q -v "Wrote" 5 while read line; do
12 then 6 case "$line" in
13 echo $line 7 Rendering\ Complete,\ saving*file*|Wrote\ CSS\ to*)
14 fi 8 ;;
9 *)
10 echo "$line"
11 ;;
12 esac
15 done 13 done
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld