solomonchidera / git-monitor

a bash script to monitor your git directories and save you the risk of merge conflicts
MIT License
1 stars 0 forks source link

Network outage edge case #4

Open solomonchidera opened 1 month ago

solomonchidera commented 1 month ago

i want to handle a network outage error in the case where internet decide to bail on you, so the script exits and report the error

solomonchidera commented 1 month ago

i think to handle this, try and catch could catch the exit status code of git pull and act based on it

solomonchidera commented 1 month ago

try and catch is not a bash script syntax