From 4b0e891e933f6a72cdbfbd20a46f42407a0fcc6e Mon Sep 17 00:00:00 2001 From: murgi Date: Tue, 5 Aug 2025 14:21:11 +0200 Subject: [PATCH] Autopull test --- zsh/.zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 5635c1c..eb95120 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -21,13 +21,14 @@ fi function update_dotfiles () { cd ~/dotfiles || return - if git fetch --dry-run | grep -q . > /dev/null 2>&1; then + fetch=$(git fetch --dry-run) + if [[ -n $fetch ]]; then git pull > /dev/null 2>&1 fi } if [ "$shared_config" -eq 0 ]; then - update_dotfiles >/tmp/nvim.log 2>&1 + update_dotfiles >/tmp/nvim.log 2>&1 & fi