diff options
| author | christianchiarulli <[email protected]> | 2021-08-03 23:12:05 -0400 | 
|---|---|---|
| committer | christianchiarulli <[email protected]> | 2021-08-03 23:12:05 -0400 | 
| commit | 686e54ab0dfa5ffcac37599e5de7984f1d9e738f (patch) | |
| tree | 726c844e60ca09d77dea7e79076106b98594f0e8 | |
| parent | de4b509722e4c3d56aa539d8e4806c85b21c73a6 (diff) | |
check if git is installed
| -rwxr-xr-x | utils/installer/install.sh | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 72a8cabb..37be7ad5 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -158,6 +158,11 @@ asktoinstallnode() {  	[ "$answer" != "${answer#[Yy]}" ] && installnode  } +asktoinstallgit() { +	echo "git not found, please install git" +  exit +} +  asktoinstallpip() {  	# echo "pip not found"  	# echo -n "Would you like to install pip now (y/n)? " @@ -227,6 +232,9 @@ esac  # move old lvim directory if it exists  [ -d "$HOME/.local/share/lunarvim" ] && moveoldlvim +# install node and neovim support +(command -v git >/dev/null && echo "git installed, moving on...") || asktoinstallgit +  # install pip  (command -v pip3 >/dev/null && echo "pip installed, moving on...") || asktoinstallpip | 
