Check for git
This commit is contained in:
parent
68f7a53737
commit
f821a5da53
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user