Perform early tests before running main program

This commit is contained in:
Michael Boelen 2016-07-31 11:48:04 +02:00
parent 62c7b46311
commit 9b00ea7d40
1 changed files with 5 additions and 0 deletions

5
lynis
View File

@ -545,6 +545,11 @@ ${NORMAL}
fi fi
fi fi
LogTextBreak LogTextBreak
# Pre-execution tests
if [ ${UPLOAD_DATA} -eq 1 -a -z "${LICENSE_KEY}" ]; then DisplayError "${ERROR_NO_LICENSE}" 64; fi
if [ ${UPLOAD_DATA} -eq 1 -a -z "${UPLOAD_SERVER}" ]; then DisplayError "${ERROR_NO_UPLOAD_SERVER}" 64; fi
# #
################################################################################# #################################################################################
# #