[FLINK-10669][e2e] Fixed error & exception checking in logs
[FLINK-10669][e2e] Fixed error & exception checking in logs

Previously the 'q' flag of grep make the last element of pipeline exit
as soon as the condition was satisfied. This resulted that if there were
multiple log files and the condition was met for the first file,
operations on subsequent files tried to write to closed pipe which
resulted in pipefail code and the if condition to be evaluated
incorrectly.

fhueske/flink,wwjiang007/flink,aljoscha/flink,jinglining/flink,gyfora/flink,greghogan/flink,zentol/flink,kaibozhou/flink,jinglining/flink,hequn8128/flink,bowenli86/flink,kl0u/flink,mbode/flink,zentol/flink,lincoln-lil/flink,apache/flink,greghogan/flink,aljoscha/flink,twalthr/flink,xccui/flink,jinglining/flink,gyfora/flink,mylog00/flink,shaoxuan-wang/flink,shaoxuan-wang/flink,mylog00/flink,godfreyhe/flink,greghogan/flink,rmetzger/flink,tillrohrmann/flink,hequn8128/flink,xccui/flink,lincoln-lil/flink,zjureel/flink,kl0u/flink,sunjincheng121/flink,tzulitai/flink,clarkyzl/flink,wwjiang007/flink,twalthr/flink,tillrohrmann/flink,xccui/flink,lincoln-lil/flink,sunjincheng121/flink,tony810430/flink,greghogan/flink,apache/flink,zentol/flink,bowenli86/flink,GJL/flink,GJL/flink,aljoscha/flink,rmetzger/flink,GJL/flink,darionyaphet/flink,bowenli86/flink,sunjincheng121/flink,bowenli86/flink,tony810430/flink,kl0u/flink,godfreyhe/flink,StephanEwen/incubator-flink,shaoxuan-wang/flink,jinglining/flink,tillrohrmann/flink,tillrohrmann/flink,StephanEwen/incubator-flink,rmetzger/flink,darionyaphet/flink,tzulitai/flink,twalthr/flink,zjureel/flink,rmetzger/flink,zjureel/flink,apache/flink,tillrohrmann/flink,mbode/flink,ueshin/apache-flink,StephanEwen/incubator-flink,bowenli86/flink,wwjiang007/flink,xccui/flink,kaibozhou/flink,StephanEwen/incubator-flink,gyfora/flink,wwjiang007/flink,lincoln-lil/flink,fhueske/flink,kaibozhou/flink,tillrohrmann/flink,zjureel/flink,gyfora/flink,tzulitai/flink,zjureel/flink,xccui/flink,StephanEwen/incubator-flink,zjureel/flink,StephanEwen/incubator-flink,apache/flink,clarkyzl/flink,ueshin/apache-flink,sunjincheng121/flink,ueshin/apache-flink,xccui/flink,apache/flink,tzulitai/flink,GJL/flink,shaoxuan-wang/flink,kaibozhou/flink,tony810430/flink,clarkyzl/flink,godfreyhe/flink,hequn8128/flink,jinglining/flink,twalthr/flink,wwjiang007/flink,rmetzger/flink,kl0u/flink,zentol/flink,jinglining/flink,hequn8128/flink,fhueske/flink,gyfora/flink,GJL/flink,clarkyzl/flink,tony810430/flink,kaibozhou/flink,clarkyzl/flink,gyfora/flink,mbode/flink,greghogan/flink,twalthr/flink,rmetzger/flink,fhueske/flink,mbode/flink,ueshin/apache-flink,darionyaphet/flink,zjureel/flink,sunjincheng121/flink,hequn8128/flink,hequn8128/flink,aljoscha/flink,fhueske/flink,apache/flink,kl0u/flink,mylog00/flink,godfreyhe/flink,zentol/flink,kl0u/flink,zentol/flink,mylog00/flink,mbode/flink,apache/flink,wwjiang007/flink,godfreyhe/flink,xccui/flink,twalthr/flink,gyfora/flink,aljoscha/flink,tillrohrmann/flink,tzulitai/flink,tony810430/flink,lincoln-lil/flink,rmetzger/flink,shaoxuan-wang/flink,bowenli86/flink,sunjincheng121/flink,tony810430/flink,darionyaphet/flink,mylog00/flink,godfreyhe/flink,tzulitai/flink,shaoxuan-wang/flink,tony810430/flink,twalthr/flink,lincoln-lil/flink,kaibozhou/flink,aljoscha/flink,ueshin/apache-flink,fhueske/flink,godfreyhe/flink,zentol/flink,wwjiang007/flink,greghogan/flink,GJL/flink,lincoln-lil/flink,darionyaphet/flink