Check for git

This commit is contained in:
Collin Jackson 2024-10-08 17:26:38 -07:00
parent 68f7a53737
commit f821a5da53

View File

@ -12,6 +12,13 @@ while [ -z "$NONINTERACTIVE" ]; do
esac esac
done 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 if [ -d "$NEXUS_HOME/network-api" ]; then
echo "$NEXUS_HOME/network-api exists. Updating."; echo "$NEXUS_HOME/network-api exists. Updating.";
(cd $NEXUS_HOME/network-api && git pull) (cd $NEXUS_HOME/network-api && git pull)