Add jared_winton's code for checking result of running a bash script