Advertisement
akovia

Untitled

Nov 11th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. if [[ -f $PWD/fixfam.pe ]]; then
  2.   FFCONV=$((FFCONV +1))
  3.   local toff="$( ./fixfam.pe $1 "$INFAM" $2 $3 $4 2>&1)"
  4.   local tolog="$(echo -e "$(awk '{ if ( NR > 5 ) { print } }' <<< "$toff")"  | tee -a ff.log)"
  5.  while IFS= read line ; do
  6.    if grep -E -A 1 -i 'differ|warning|fail|invalid'; then
  7.        msgs ERROR bth "$line"
  8.    else
  9.        echo "$line" >>/dev/null
  10.    fi
  11. done <<<  "$tolog"
  12. else
  13.  echob "============================================================="
  14.  msgs ERROR bth  "SCRIPT fixfam.pe NOT FOUND.  Aborting."
  15.  echob "============================================================="
  16. exit 1
  17. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement