Browse Source

Network error message now working

merge-requests/1/merge
lhark 11 years ago
parent
commit
5c9b82d6b5
  1. 6
      zshrc

6
zshrc

@ -15,9 +15,9 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin
# Mise à jour automatique à partir du repo distant
cd /home/$USER/rc
# In case the network is down, don't lock the terminal
timeout 3 git fetch
if [ $? = 124 ] then
echo "Unable to reach $(git remote -v)"
timeout 3 git fetch > /dev/null 2>&1
if [ "$?" -ge "124" ]; then
echo "Unable to reach $(git remote -v | grep "fetch")"
fi
git_st=$(command git status --porcelain -b 2> /dev/null)
if $(echo "$git_st" | grep '^## .*ahead' &> /dev/null); then

Loading…
Cancel
Save