Skip to content

Commit

Permalink
revoke: Add minor shellcheck ignores for confirmation text
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Jul 18, 2024
1 parent 0b032d9 commit fba9d7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,7 @@ Certificate was expected at:
exp_endd="$(
"$EASYRSA_OPENSSL" x509 -in "${exp_exist}" -noout \
-enddate -serial)" || die "revoke - expire -enddate"
# shellcheck disable=SC2295 # Expansions inside ${..}
exp_confirm="
Expired certificate:
* ${exp_exist}
Expand All @@ -3138,6 +3139,7 @@ Expired certificate:
ren_endd="$(
"$EASYRSA_OPENSSL" x509 -in "${ren_exist}" -noout \
-enddate -serial)" || die "revoke - renew -enddate"
# shellcheck disable=SC2295 # Expansions inside ${..}
ren_confirm="
Renewed certificate:
* ${ren_exist}
Expand All @@ -3157,6 +3159,7 @@ Renewed certificate:
if [ "${exp_exist}" ] || [ "${ren_exist}" ]; then
warn "The following certificate(s) exist:
${exp_exist:+${exp_confirm}${NL}}${ren_exist:+${ren_confirm}${NL}}"
# shellcheck disable=SC2295 # Expansions inside ${..}
confirm " Confirm intended use of 'revoke' ? " yes "\
Please confirm your intended use of 'revoke' for the following
issued certificate:${NL}
Expand Down

0 comments on commit fba9d7c

Please sign in to comment.