Fix autoupdate directory change problem
This commit is contained in:
parent
47d0e62b3a
commit
042334b530
1 changed files with 3 additions and 3 deletions
6
zshrc
6
zshrc
|
@ -18,7 +18,7 @@ RC_PATH=$(dirname "$(readlink -f ${(%):-%x})")
|
|||
|
||||
# Mise à jour automatique à partir du repo distant
|
||||
|
||||
PWD=`pwd`
|
||||
CUR_DIR=`pwd`
|
||||
cd $RC_PATH
|
||||
|
||||
# In case the network is down, don't lock the terminal
|
||||
|
@ -39,13 +39,13 @@ elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then
|
|||
if [ "$line" = Y ] || [ "$line" = y ]; then
|
||||
git pull --rebase --stat origin master
|
||||
$RC_PATH/install.sh
|
||||
cd $PWD
|
||||
cd $CUR_DIR
|
||||
source $HOME/.zshrc
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
cd $PWD
|
||||
cd $CUR_DIR
|
||||
|
||||
|
||||
# Configuration for virtualenv
|
||||
|
|
Loading…
Reference in a new issue