From f821a5da53e1e0fcb94a5c310a98c67d1a50eadf Mon Sep 17 00:00:00 2001 From: Collin Jackson Date: Tue, 8 Oct 2024 17:26:38 -0700 Subject: [PATCH] Check for git --- public/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/install.sh b/public/install.sh index bc0605a..b281bc5 100755 --- a/public/install.sh +++ b/public/install.sh @@ -12,6 +12,13 @@ while [ -z "$NONINTERACTIVE" ]; do esac done +git --version 2>&1 >/dev/null +GIT_IS_AVAILABLE=$? +if [ $GIT_IS_AVAILABLE != 0 ]; then + echo Unable to find git. Please install it and try again. + exit 1; +fi + if [ -d "$NEXUS_HOME/network-api" ]; then echo "$NEXUS_HOME/network-api exists. Updating."; (cd $NEXUS_HOME/network-api && git pull)