diff options
author | mboelen <michael@cisofy.com> | 2014-10-27 01:34:34 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2014-10-27 01:34:34 +0300 |
commit | 14f2629d3cfee8e0e068f5808df765c4e22080ca (patch) | |
tree | bf3e0583b442b67d0bd9e88dcb75452594bbc4d3 /extras/build-lynis.sh | |
parent | 46de3f8d99cc09ed752286fd6f326d8f38b3b7f6 (diff) |
Improvements for building
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}` |