Merge branch 'main' of ssh://gitlab.com/tavo-wasd/dotfiles

This commit is contained in:
tavo-wasd 2023-05-10 15:21:30 -06:00
commit 12503e3f92

View file

@ -1,8 +1,17 @@
#!/bin/sh #!/bin/sh
# # Check for new commits in remote
git -C "$1" remote update
commits=$(git -C "$1" status | grep -o "[0-9*]\scommit" | cut -d " " -f 1) # Git folders to check for new commits
[ -z "$commits" ] && exit set -- $HOME/Documents $HOME/.config
total=0
printf "󰊢 $commits" for repo in $@ ; do
git -C "$repo" remote update > /dev/null 2>&1
commits=$(git -C "$repo" status | grep -o "[0-9*]\scommit" | cut -d " " -f 1)
[ -n "$commits" ] && total=$(($total+$commits))
done
[ "$total" = 0 ] && exit
printf "󰊢 $total"
kill -54 "$(pidof dwmblocks)"