2023-09-15 09:55:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-16 15:55:27 +02:00
|
|
|
update_plugin() {
|
|
|
|
cd "$1" || return
|
|
|
|
printf 'Updating plugin \033[1m%s\033[0m...\n' "$(echo "$1" | sed 's|/start||')"
|
|
|
|
git pull
|
|
|
|
}
|
|
|
|
|
|
|
|
cd ~/.local/share/nvim/site/pack || exit
|
|
|
|
|
|
|
|
for i in */start/*; do
|
|
|
|
while [ "$(jobs -p | wc -l)" -ge 4 ]; do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
update_plugin "$i" &
|
|
|
|
done
|
|
|
|
|
|
|
|
wait
|