18 lines
323 B
Bash
Executable file
18 lines
323 B
Bash
Executable file
#!/bin/sh
|
|
|
|
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
|