[neovim] Remove useless code from check_plugin_updates.sh

This commit is contained in:
Daniel Carrillo 2022-10-02 17:16:31 +02:00
parent 847d1f9d71
commit 360cff63a9
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 4 additions and 4 deletions

View File

@ -25,18 +25,18 @@ function check_update() {
pushd "$HOME/.config/nvim/lua/user" > /dev/null || exit
grep -P "use.*commit" plugins.lua < plugins.lua | cut -f 2,4 -d "\"" | while IFS= read -r line; do
grep -P "use.*commit" plugins.lua | cut -f 2,4 -d "\"" | while IFS= read -r line; do
plugin=$(echo "$line" | cut -f1 -d "\"" | cut -f2 -d "/")
current_commit=$(echo "$line" | cut -f2 -d "\"")
check_update "$plugin" "$current_commit"
done
grep -P "^\t*commit" plugins.lua < plugins.lua | cut -f2 -d "\"" | while IFS= read -r current_commit; do
grep -P "^\t*commit" plugins.lua | cut -f2 -d "\"" | while IFS= read -r current_commit; do
plugin=$(grep "$current_commit" -B1 plugins.lua | grep -v "$current_commit" | cut -f2 -d "\"" | cut -f2 -d "/")
check_update "$plugin" "$current_commit"
done
grep -P "^\t*requires.*commit" < plugins.lua | cut -f 2,4 -d "\"" | while IFS= read -r line; do
grep -P "^\t*requires.*commit" plugins.lua | cut -f 2,4 -d "\"" | while IFS= read -r line; do
plugin=$(echo "$line" | cut -f1 -d "\"" | cut -f2 -d "/")
current_commit=$(echo "$line" | cut -f2 -d "\"")
check_update "$plugin" "$current_commit"

View File

@ -2,7 +2,7 @@
My dotfiles, including:
- neovim
- neovim (need neovim v0.8.x)
- kitty
- polybar
- zsh