Autopull test
This commit is contained in:
@@ -20,10 +20,9 @@ if [[ -f ~/.zsh/.shared_config ]] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
function update_dotfiles () {
|
function update_dotfiles () {
|
||||||
cd ~/dotfiles
|
cd ~/dotfiles || return
|
||||||
fetch=$(git fetch)
|
if git fetch --dry-run | grep -q .; then
|
||||||
if [[ -n "$fetch" ]]; then
|
git pull > /dev/null 2>&1
|
||||||
git pull 2>& 1 > /dev/null
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user