Test if profiles provided using the command line are readable

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

View File

@ -459,9 +459,11 @@
done
# Search any profiles defined with --profile
for FILE in ${SEARCH_PROFILES}; do
if [ -r ${FILE} ]; then
if [ -r "${FILE}" ]; then
Debug "Found profile defined with --profile"
PROFILES="${PROFILES} ${FILE}"
else
ExitFatal "Could not find or read profile (${FILE})"
fi
done
fi