From dcd829076bb6adfde9c25568ae557cd0491e8e45 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 18 Jul 2019 11:48:00 +0200 Subject: Move this check to the DiscoverProfiles function --- include/parameters | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/parameters') diff --git a/include/parameters b/include/parameters index 98cd2e2d..ede08267 100644 --- a/include/parameters +++ b/include/parameters @@ -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)" -- cgit v1.2.3