Commit 0f0a48ab authored by Nico Schottelius's avatar Nico Schottelius

Added sanity check, exit if pull or clone failed

parent a1ad5cd3
......@@ -6,10 +6,15 @@
# Install latest git and cogito to $INSTALL_PREFIX/$name and
# link the binaries to $BINDIR
# Needs git and cogito to work!
# And:
# - libexpat-dev
# - libcurl3-dev
# - libssl-dev
# - libz-dev
BASE_GET=http://www.kernel.org/pub/scm/
PROJECTS="git/git.git cogito/cogito.git"
BUILDDIR=/home/nico/build
BUILDDIR=/home/user/nico/build
INSTALL_PREFIX=/usr/packages
BINDIR=/usr/local/bin
......@@ -34,6 +39,11 @@ for project in $PROJECTS; do
cg-update origin
fi
if [ $? -ne 0 ]; then
echo "Pull or clone failed, aborting now."
exit 23
fi
cd "$BUILDDIR/$realname"
version=$(cg-object-id)
echo "Installing $realname (Version: $version)"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment