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