Skip to content

Commit

Permalink
fix: do not run submodules if not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Nov 3, 2024
1 parent 0b5124b commit a0b5532
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit a0b5532

Please sign in to comment.