Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 #!/bin/bash | 1 #!/bin/sh |
2 | 2 |
3 IFS=$'\n' lines=($(cat /dev/stdin)) | 3 # Filter out uninformative output lines from the node-sass cron job script |
4 | 4 |
5 for (( i=0; i < ${#lines[*]}; i++ )) | 5 while read line; do |
6 do | 6 case "$line" in |
7 if [[ ${lines[$i]} != *"Rendering"* ]] && [[ ${lines[$i]} != *"Wrote"* ]] ; th en | 7 Rendering\ Complete,\ saving*file*|Wrote\ CSS\ to*) |
8 echo ${lines[$i]} | 8 ;; |
9 fi | 9 *) |
10 echo "$line" | |
11 ;; | |
12 esac | |
10 done | 13 done |
LEFT | RIGHT |