Autopull test

This commit is contained in:
murgi
2025-08-05 14:24:59 +02:00
parent 69f2e83819
commit c0326bf2a6

View File

@@ -19,16 +19,15 @@ if [[ -f ~/.zsh/.shared_config ]] ; then
touch ~/.config/nvim/.shared_config
fi
function update_dotfiles () {
update_dotfiles() {
cd ~/dotfiles || return
fetch=$(git fetch --dry-run)
if [[ -n $fetch ]]; then
if git fetch --dry-run 2>/dev/null | grep -q .; then
git pull > /dev/null 2>&1
fi
}
if [ "$shared_config" -eq 0 ]; then
update_dotfiles >/tmp/nvim.log 2>&1 &
update_dotfiles >/dev/null 2>&1 &!
fi