Rigorously quote all use of "$EASYRSA_BATCH"
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
parent
9970d626c1
commit
7227adcca2
@ -984,7 +984,7 @@ gen_dh() {
|
|||||||
|
|
||||||
# check to see if we already have a dh parameters file
|
# check to see if we already have a dh parameters file
|
||||||
if [ -e "$EASYRSA_PKI/dh.pem" ]; then
|
if [ -e "$EASYRSA_PKI/dh.pem" ]; then
|
||||||
if [ "$EASYRSA_BATCH" = "1" ]; then
|
if [ "$EASYRSA_BATCH" ]; then
|
||||||
# if batch is enabled, die
|
# if batch is enabled, die
|
||||||
die "file $EASYRSA_PKI/dh.pem already exists!"
|
die "file $EASYRSA_PKI/dh.pem already exists!"
|
||||||
else
|
else
|
||||||
@ -1063,7 +1063,7 @@ $EASYRSA_EXTRA_EXTS"
|
|||||||
key_out_tmp="$(easyrsa_mktemp)" || die "Failed to create temporary file"
|
key_out_tmp="$(easyrsa_mktemp)" || die "Failed to create temporary file"
|
||||||
req_out_tmp="$(easyrsa_mktemp)" || die "Failed to create temporary file"
|
req_out_tmp="$(easyrsa_mktemp)" || die "Failed to create temporary file"
|
||||||
# generate request
|
# generate request
|
||||||
[ $EASYRSA_BATCH ] && opts="$opts -batch"
|
[ "$EASYRSA_BATCH" ] && opts="$opts -batch"
|
||||||
# shellcheck disable=2086,2148
|
# shellcheck disable=2086,2148
|
||||||
algo_opts=""
|
algo_opts=""
|
||||||
if [ "ed" = "$EASYRSA_ALGO" ]; then
|
if [ "ed" = "$EASYRSA_ALGO" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user