summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gassner <justin.gassner@mailbox.org>2023-08-26 11:59:56 +0200
committerJustin Gassner <justin.gassner@mailbox.org>2023-08-26 11:59:56 +0200
commit97a347d6000440ec267b8031644ebd9bf2d95088 (patch)
treed091cef96f169db98f753351ae6f253e45b8e270
parente93ea568751ab41e806d8cb729672f79465c95e7 (diff)
downloaddotfiles-97a347d6000440ec267b8031644ebd9bf2d95088.tar.zst
Upgrade script: use git submodule to update plugins
-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