From 14f2629d3cfee8e0e068f5808df765c4e22080ca Mon Sep 17 00:00:00 2001 From: mboelen Date: Sun, 26 Oct 2014 23:34:34 +0100 Subject: Improvements for building --- extras/build-lynis.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'extras') diff --git a/extras/build-lynis.sh b/extras/build-lynis.sh index 6b5beac6..9d82bcc6 100755 --- a/extras/build-lynis.sh +++ b/extras/build-lynis.sh @@ -189,13 +189,17 @@ #fi # Create tarball - tar -C ${MYWORKDIR} --exclude=debian --exclude=README.md --exclude=.bzr* --exclude=.git* -c -z -f ${TARBALL} lynis 2> /dev/null if [ -f ${TARBALL} ]; then - echo "[V] Tarball created" + echo "Tarball already exists for this version, not overwriting it" else - echo "[X] Tarball ${TARBALL} could not be created" - ExitFatal + tar -C ${MYWORKDIR} --exclude=debian --exclude=README.md --exclude=.bzr* --exclude=.git* -c -z -f ${TARBALL} lynis 2> /dev/null + if [ -f ${TARBALL} ]; then + echo "[V] Tarball created" + else + echo "[X] Tarball ${TARBALL} could not be created" + ExitFatal + fi fi TARBALL_MD5=`md5sum ${TARBALL}` -- cgit v1.2.3