Added sanity check, exit if pull or clone failed
This commit is contained in:
parent
a1ad5cd344
commit
0f0a48ab3c
1 changed files with 11 additions and 1 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Reference in a new issue