echo typo
This commit is contained in:
parent
0f6a962d9b
commit
20e4795ce4
1 changed files with 2 additions and 2 deletions
4
zshrc
4
zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue