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:
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}`