Merge pull request #19 from vimist/Treat_SIGPIPE_as_success

Treat SIGPIPE (exit code 141) as a success
This commit is contained in:
Kunal Dabir 2017-10-14 16:16:08 +05:30 committed by GitHub
commit f5101803f4
1 changed files with 1 additions and 1 deletions

2
has
View File

@ -133,7 +133,7 @@ __detect(){
echo ${FAIL} ${command}
KO=$(($KO+1))
elif [ ${status} -eq 0 ]; then ## successfully executed
elif [ ${status} -eq 0 ] || [ ${status} -eq 141 ]; then ## successfully executed
echo ${PASS} ${command} ${version}
OK=$(($OK+1))