vars_setup: Prohibit specifying vars as a directory. eg: ./
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
232a28d959
commit
6de343fca3
@ -5736,6 +5736,11 @@ No Easy-RSA 'vars' configuration file exists!"
|
|||||||
|
|
||||||
# If a vars file was located then source it
|
# If a vars file was located then source it
|
||||||
else
|
else
|
||||||
|
# 'vars' MUST not be a directory
|
||||||
|
[ -d "$vars" ] && die "\
|
||||||
|
Missing vars file:
|
||||||
|
* $vars"
|
||||||
|
|
||||||
# 'vars' now MUST exist
|
# 'vars' now MUST exist
|
||||||
[ -e "$vars" ] || die "\
|
[ -e "$vars" ] || die "\
|
||||||
Missing vars file:
|
Missing vars file:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user