Force cacert removing when erasing cakey

This commit is contained in:
Victor LABORIE 2018-06-27 12:51:30 +02:00
parent 84bfee7495
commit 75246c956f
1 changed files with 1 additions and 1 deletions

View File

@ -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" \