Style changes

This commit is contained in:
Michael Boelen 2019-09-19 15:17:23 +02:00
parent c0f9c0ab84
commit 82d9940f13
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 24 additions and 26 deletions

View File

@ -55,20 +55,17 @@
# Functions: # Functions:
# Clean temporary files up # Clean temporary files up
CleanUp() CleanUp() {
{
if [ ! "${TMPDIR}" = "" -a -d "${TMPDIR}" ]; then if [ ! "${TMPDIR}" = "" -a -d "${TMPDIR}" ]; then
rm -rf ${TMPDIR} rm -rf ${TMPDIR}
fi fi
} }
Exit() Exit() {
{
CleanUp CleanUp
exit 0 exit 0
} }
ExitFatal() ExitFatal() {
{
CleanUp CleanUp
exit 1 exit 1
} }
@ -284,6 +281,7 @@
rm -rf ${MYBUILDDIR}/git/Lynis rm -rf ${MYBUILDDIR}/git/Lynis
#git checkout tags/${LYNIS_VERSION} #git checkout tags/${LYNIS_VERSION}
fi fi
git clone https://github.com/CISOfy/Lynis.git ${MYBUILDDIR}/git/Lynis git clone https://github.com/CISOfy/Lynis.git ${MYBUILDDIR}/git/Lynis
if [ -d ${MYBUILDDIR}/git/Lynis/debian/ ]; then if [ -d ${MYBUILDDIR}/git/Lynis/debian/ ]; then