From d6cce1cd08b31458b355c7179817397c36bfe57d Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Thu, 18 Jul 2019 11:54:11 +0200 Subject: [PATCH] Test if profiles provided using the command line are readable --- include/functions | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/functions b/include/functions index a48c338d..24facbdc 100644 --- a/include/functions +++ b/include/functions @@ -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