Added check return code for shallow_flash.sh

fix #215
Please remove && exit 1