diff options
Diffstat (limited to 'extras/build-lynis.sh')
-rwxr-xr-x | extras/build-lynis.sh | 12 |
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}` |