From 75246c956f2ad1b89f5abf5786928ae21876a0ed Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Wed, 27 Jun 2018 12:51:30 +0200 Subject: [PATCH] Force cacert removing when erasing cakey --- shellpki.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shellpki.sh b/shellpki.sh index e9a3a86..37feb00 100755 --- a/shellpki.sh +++ b/shellpki.sh @@ -21,7 +21,7 @@ init() { printf "%s already exists, do you really want to erase it ? [y/N] " ${CAKEY} read -r REPLY resp=$(echo "${REPLY}"|tr 'Y' 'y') - [ "${resp}" = "y" ] && rm "${CAKEY}" "${CACERT}" + [ "${resp}" = "y" ] && rm -f "${CAKEY}" "${CACERT}" fi [ ! -f "${CAKEY}" ] && "$OPENSSL" \