mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 15:24:21 +02:00
Test if profiles provided using the command line are readable
This commit is contained in:
parent
dcd829076b
commit
d6cce1cd08
@ -459,9 +459,11 @@
|
|||||||
done
|
done
|
||||||
# Search any profiles defined with --profile
|
# Search any profiles defined with --profile
|
||||||
for FILE in ${SEARCH_PROFILES}; do
|
for FILE in ${SEARCH_PROFILES}; do
|
||||||
if [ -r ${FILE} ]; then
|
if [ -r "${FILE}" ]; then
|
||||||
Debug "Found profile defined with --profile"
|
Debug "Found profile defined with --profile"
|
||||||
PROFILES="${PROFILES} ${FILE}"
|
PROFILES="${PROFILES} ${FILE}"
|
||||||
|
else
|
||||||
|
ExitFatal "Could not find or read profile (${FILE})"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user