Added check return code for shallow_flash.sh
fix #215
Merge pull request #216 from askeing/added_check_return_code_for_shallow_flash

Added check return code for shallow_flash.sh