0

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?

warch
  • 2,387
  • 2
  • 26
  • 43

0 Answers0