Autopull test

This commit is contained in:
murgi
2025-08-05 12:56:20 +02:00
parent f953fbbcca
commit 56aaff0ee9

View File

@@ -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
} }