Force cacert removing when erasing cakey
This commit is contained in:
parent
84bfee7495
commit
75246c956f
|
@ -21,7 +21,7 @@ init() {
|
||||||
printf "%s already exists, do you really want to erase it ? [y/N] " ${CAKEY}
|
printf "%s already exists, do you really want to erase it ? [y/N] " ${CAKEY}
|
||||||
read -r REPLY
|
read -r REPLY
|
||||||
resp=$(echo "${REPLY}"|tr 'Y' 'y')
|
resp=$(echo "${REPLY}"|tr 'Y' 'y')
|
||||||
[ "${resp}" = "y" ] && rm "${CAKEY}" "${CACERT}"
|
[ "${resp}" = "y" ] && rm -f "${CAKEY}" "${CACERT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -f "${CAKEY}" ] && "$OPENSSL" \
|
[ ! -f "${CAKEY}" ] && "$OPENSSL" \
|
||||||
|
|
Loading…
Reference in a new issue