From a6c7df9abb84318f2274a2cdc164bcc99d7a72d0 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 5 Mar 2021 10:49:20 +0000 Subject: [PATCH] Check if git is installed --- bootstrap.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 83c4341..cccfd9e 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,4 +1,11 @@ #!/bin/bash + +which git > /dev/null +if [ $? -ne 0 ]; then + echo "Git isn't installed." + exit +fi + git clone https://github.com/nikdoof/dotfiles.git $HOME/.dotfiles > /dev/null cd $HOME/.dotfiles/ for package in bin bash; do