Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-10-27 01:34:34 +0300
committermboelen <michael@cisofy.com>2014-10-27 01:34:34 +0300
commit14f2629d3cfee8e0e068f5808df765c4e22080ca (patch)
treebf3e0583b442b67d0bd9e88dcb75452594bbc4d3 /extras
parent46de3f8d99cc09ed752286fd6f326d8f38b3b7f6 (diff)
Improvements for building
Diffstat (limited to 'extras')
-rwxr-xr-xextras/build-lynis.sh12
1 files changed, 8 insertions, 4 deletions
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}`