From a0b55327e6c82258ed6d713892fa1108e5ad0a24 Mon Sep 17 00:00:00 2001 From: Florent Vilmart Date: Sun, 3 Nov 2024 16:18:14 -0500 Subject: [PATCH] fix: do not run submodules if not necessary --- install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index d6abf1a..bd03bd0 100755 --- a/install.sh +++ b/install.sh @@ -25,7 +25,11 @@ fix_tmux_nu_path() { } submodules() { - git submodule update --init --recursive + if [ -d .git ]; then + git submodule update --init --recursive + else + echo "Not a git repo... skipping submodules" + fi } brew() { @@ -61,12 +65,10 @@ node() { } vim() { - submodules cd $(pwd)/vimrc && sh ./install.sh all } tmux_plugins() { - submodules mkdir -p ${HOME}/.tmux/plugins ln -sfn $(pwd)/tpm ${HOME}/.tmux/plugins }