Skip to content

Commit 7178f07

Browse files
committed
style: linting
1 parent 55cd21a commit 7178f07

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/letsencrypt_service

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function update_cert {
155155

156156
local -n cert_keysize="LETSENCRYPT_${cid}_KEYSIZE"
157157
if [[ -z "$cert_keysize" ]] || \
158-
[[ ! "$cert_keysize" =~ ^(2048|3072|4096|ec-256|ec-384)$ ]]; then
158+
[[ ! "$cert_keysize" =~ ^('2048'|'3072'|'4096'|'ec-256'|'ec-384')$ ]]; then
159159
cert_keysize=$DEFAULT_KEY_SIZE
160160
fi
161161
params_issue_arr+=(--keylength "$cert_keysize")
@@ -381,7 +381,8 @@ function update_cert {
381381
local file_path="${certificate_dir}/${file}"
382382
[[ -e "$file_path" ]] && set_ownership_and_permissions "$file_path"
383383
done
384-
local acme_private_key="$(find /etc/acme.sh -name "*.key" -path "*${hosts_array[0]}*")"
384+
local acme_private_key
385+
acme_private_key="$(find /etc/acme.sh -name "*.key" -path "*${hosts_array[0]}*")"
385386
[[ -e "$acme_private_key" ]] && set_ownership_and_permissions "$acme_private_key"
386387
# Queue nginx reload if a certificate was issued or renewed
387388
[[ $acmesh_return -eq 0 ]] \

0 commit comments

Comments
 (0)