I have a bash script for deploying a web application which does following steps:
- git fetch
- git pull
- compile files in a release candidate folder
- sync files to live folder
I want to edit the script so that it aborts if git pull
fails. How can I check the result of git pull
?