echo typo

This commit is contained in:
lhark 2015-08-09 12:47:54 +02:00
parent 0f6a962d9b
commit 20e4795ce4

4
zshrc
View file

@ -13,7 +13,7 @@
export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin
# Mise à jour automatique à partir du repo distant # Mise à jour automatique à partir du repo distant
cd /home/$USER/rc cd $HOME/rc
# In case the network is down, don't lock the terminal # In case the network is down, don't lock the terminal
timeout 3 git fetch > /dev/null 2>&1 timeout 3 git fetch > /dev/null 2>&1
if [ "$?" -ge "124" ]; then if [ "$?" -ge "124" ]; then
@ -21,7 +21,7 @@ if [ "$?" -ge "124" ]; then
fi fi
git_st=$(command git status --porcelain -b 2> /dev/null) git_st=$(command git status --porcelain -b 2> /dev/null)
if $(echo "$git_st" | grep '^## .*ahead' &> /dev/null); then if $(echo "$git_st" | grep '^## .*ahead' &> /dev/null); then
echo"You have unpushed business in /home/$USER/rc" echo "You have unpushed business in $HOME/rc"
elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then
echo "Type Y to update .zshrc: \c" echo "Type Y to update .zshrc: \c"
read line read line