in reply to Re: Capture Exit Code Using Pipe & Teein thread Capture Exit Code Using Pipe & Tee
false | tee /dev/null [ $PIPESTATUS -eq 0 ] || exit $PIPESTATUS [download]