mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-23 00:18:00 +00:00
[neovim] Remove useless code from check_plugin_updates.sh
This commit is contained in:
parent
847d1f9d71
commit
360cff63a9
@ -25,18 +25,18 @@ function check_update() {
|
|||||||
|
|
||||||
pushd "$HOME/.config/nvim/lua/user" > /dev/null || exit
|
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 "/")
|
plugin=$(echo "$line" | cut -f1 -d "\"" | cut -f2 -d "/")
|
||||||
current_commit=$(echo "$line" | cut -f2 -d "\"")
|
current_commit=$(echo "$line" | cut -f2 -d "\"")
|
||||||
check_update "$plugin" "$current_commit"
|
check_update "$plugin" "$current_commit"
|
||||||
done
|
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 "/")
|
plugin=$(grep "$current_commit" -B1 plugins.lua | grep -v "$current_commit" | cut -f2 -d "\"" | cut -f2 -d "/")
|
||||||
check_update "$plugin" "$current_commit"
|
check_update "$plugin" "$current_commit"
|
||||||
done
|
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 "/")
|
plugin=$(echo "$line" | cut -f1 -d "\"" | cut -f2 -d "/")
|
||||||
current_commit=$(echo "$line" | cut -f2 -d "\"")
|
current_commit=$(echo "$line" | cut -f2 -d "\"")
|
||||||
check_update "$plugin" "$current_commit"
|
check_update "$plugin" "$current_commit"
|
||||||
|
Loading…
Reference in New Issue
Block a user