From 8157f1abfe68a6fd1505cc2feed1c71d36acdbab Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 21 Aug 2024 20:42:10 +0100 Subject: [PATCH] force_set_var() Improve comments Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index cfef4860..050883b0 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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 '$*'"