| LEFT | RIGHT |
| 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 |
| LEFT | RIGHT |