summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.local/bin/upgrade11
1 files changed, 2 insertions, 9 deletions
diff --git a/.local/bin/upgrade b/.local/bin/upgrade
index e403d83..9907934 100755
--- a/.local/bin/upgrade
+++ b/.local/bin/upgrade
@@ -22,12 +22,5 @@ fi
# Manage .pac* files
sudo pacdiff
-# Update Neovim plugins
-if [[ -d ~/.config/nvim/pack/ ]]; then
- find ~/.config/nvim/pack/ -name .git -type d -print -execdir git pull \;
-fi
-
-# Update mpv plugins
-if [[ -d ~/.config/mpv/scripts/ ]]; then
- find ~/.config/mpv/scripts/ -name .git -type d -print -execdir git pull \;
-fi
+# Update nvim and mpv plugins
+git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME submodule update --remote