From c5948b643897980458de26a1c409e6d48a409cb3 Mon Sep 17 00:00:00 2001 From: murgi Date: Tue, 5 Aug 2025 13:01:19 +0200 Subject: [PATCH] Autopull test --- zsh/.zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 3bd0af9..2727f9e 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -21,13 +21,13 @@ fi function update_dotfiles () { cd ~/dotfiles || return - if git fetch --dry-run | grep -q .; then + if git fetch --dry-run | grep -q . > /dev/null 2>&1; then git pull > /dev/null 2>&1 fi } -if [ $shared_config -eq 0 ]; then - update_dotfiles &| +if [ "$shared_config" -eq 0 ]; then + update_dotfiles & fi