Move this check to the DiscoverProfiles function

This commit is contained in:
Michael Boelen 2019-07-18 11:48:00 +02:00
parent 4b0f5517f7
commit dcd829076b
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 0 additions and 4 deletions

View File

@ -315,10 +315,6 @@
--profile)
if [ $# -gt 1 ]; then
shift
if [ ! -r "$1" ]; then
echo "Fatal error: could not find or read the provided profile ($1)"
exit 1
fi
SEARCH_PROFILES="$1"
else
echo "Specify the profile (lynis audit system --profile /home/michael/myprofile.prf)"