Skip to content

Commit

Permalink
vars_setup: Prohibit specifying vars as a directory. eg: ./
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Sep 14, 2023
1 parent 232a28d commit 6de343f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6de343f

Please sign in to comment.