vars_setup: Prohibit specifying vars as a directory. eg: ./

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2023-09-14 12:13:32 +01:00
parent 232a28d959
commit 6de343fca3
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -5736,6 +5736,11 @@ No Easy-RSA 'vars' configuration file exists!"
# If a vars file was located then source it
else
# 'vars' MUST not be a directory
[ -d "$vars" ] && die "\
Missing vars file:
* $vars"
# 'vars' now MUST exist
[ -e "$vars" ] || die "\
Missing vars file: