Display key file path on success

This commit is contained in:
Jérémy Lecour 2020-05-06 00:39:23 +02:00 committed by Jérémy Lecour
parent ab4e3e5de1
commit fdb9f46e35
1 changed files with 3 additions and 1 deletions

View File

@ -523,7 +523,9 @@ create() {
${pass_args} \
${KEY_LENGTH} \
>/dev/null 2>&1
if [ "$?" -ne 0 ]; then
if [ "$?" -eq 0 ]; then
echo "The KEY file is available at \`${key_file}'"
else
error "Error generating the private key"
fi