Skip to content

Commit

Permalink
expire_cert(): Use '-f' for file existence check
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 6, 2024
1 parent 6ab98c9 commit b71028d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -3334,7 +3334,7 @@ Run easyrsa without commands for usage and command help."
easyrsa_mkdir "$EASYRSA_PKI"/expired

# Do not over write existing cert
if [ -e "$crt_out" ]; then
if [ -f "$crt_out" ]; then
user_error "\
Existing file must be revoked:
* $crt_out"
Expand Down

0 comments on commit b71028d

Please sign in to comment.