Fix typo and add PIPESTATUS for checking return values of commands executed within pipes.
PIPESTATUS
Pull-Request has been merged by huzaifas
Fix typo and add
PIPESTATUSfor checking return values of commands executed within pipes.