Skip to content

Commit

Permalink
force_set_var() Improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 21, 2024
1 parent cd887af commit 8157f1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -4630,9 +4630,9 @@ force_set_var() {
case "$1" in
*=*) user_error "force_set_var - var '$1'"
esac
# Guard unset with '|| die', just in case
# force unsetting $1; Guard unset with '|| die', just in case
unset -v "$1" || die "force_set_var - unset '$1'"
# Allow empty value to unset variable
# Allow empty value to unset variable by returning
[ "$2" ] || return 0
set_var "$1" "$2" && return
die "force_set_var - set_var '$*'"
Expand Down

0 comments on commit 8157f1a

Please sign in to comment.