From b71028dd9be04ba6c3f5b123bcd5a023575ff343 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Tue, 6 Aug 2024 09:44:24 +0100 Subject: [PATCH] expire_cert(): Use '-f' for file existence check Signed-off-by: Richard T Bonhomme --- easyrsa3/easyrsa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyrsa3/easyrsa b/easyrsa3/easyrsa index 73f0568c..f5a3bc90 100755 --- a/easyrsa3/easyrsa +++ b/easyrsa3/easyrsa @@ -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"