This lines with piped commands requires that the script sets the pipefail option:
`set -o pipefail`

Otherwise the variable $? always holds the exit status of the last command, which means a failure of pep-it.sh would be ignored.