Autopull test

This commit is contained in:
murgi
2025-08-05 14:21:11 +02:00
parent 49054e0eb9
commit 4b0e891e93

View File

@@ -21,13 +21,14 @@ fi
function update_dotfiles () { function update_dotfiles () {
cd ~/dotfiles || return 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 git pull > /dev/null 2>&1
fi fi
} }
if [ "$shared_config" -eq 0 ]; then if [ "$shared_config" -eq 0 ]; then
update_dotfiles >/tmp/nvim.log 2>&1 update_dotfiles >/tmp/nvim.log 2>&1 &
fi fi