mirror of https://github.com/CISOfy/lynis.git
Move this check to the DiscoverProfiles function
This commit is contained in:
parent
4b0f5517f7
commit
dcd829076b
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue