From 56aaff0ee977de6048f627609324b2e267febddc Mon Sep 17 00:00:00 2001 From: murgi Date: Tue, 5 Aug 2025 12:56:20 +0200 Subject: [PATCH] Autopull test --- zsh/.zshrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 5972733..3bd0af9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -20,10 +20,9 @@ if [[ -f ~/.zsh/.shared_config ]] ; then fi function update_dotfiles () { - cd ~/dotfiles - fetch=$(git fetch) - if [[ -n "$fetch" ]]; then - git pull 2>& 1 > /dev/null + cd ~/dotfiles || return + if git fetch --dry-run | grep -q .; then + git pull > /dev/null 2>&1 fi }