Change script to test for non-zero code and pipe output to /dev/null