[ZSH] Fix autopull
This commit is contained in:
@@ -21,15 +21,14 @@ fi
|
|||||||
|
|
||||||
function update_dotfiles () {
|
function update_dotfiles () {
|
||||||
cd ~/dotfiles
|
cd ~/dotfiles
|
||||||
sleep 120
|
|
||||||
fetch=$(git fetch)
|
fetch=$(git fetch)
|
||||||
if [[ -n "$fetch" ]]; then
|
if [[ -n "$fetch" ]]; then
|
||||||
git pull || echo "git pull of dotfiles failed, please see log."
|
git pull 2>& 1 > /dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $shared_config -eq 0 ]; then
|
if [ $shared_config -eq 0 ]; then
|
||||||
update_dotfiles &|
|
update_dotfiles &|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user