Added exit with curl return code

Check exit status when called from other scripts
Merge pull request #10 from bohannin/master

Added exit with curl return code