check in bash script to make sure we passed