open verbosity

This commit is contained in:
alterNERDtive 2022-07-19 14:07:00 +02:00
parent 4451000fef
commit 0f914c825f
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1

View file

@ -162,7 +162,9 @@ open () {
else
gpg --homedir "${tempdir}/gpghome" --import-options keep-ownertrust \
--import "${keypath}/${id}/${id}.private.asc"
[[ $? == 0 ]] && ln -sf ${key} ${tempdir}/gpghome/private-keys-v1.d/
[[ $? != 0 ]] && exit 1
ln -sf ${key} ${tempdir}/gpghome/private-keys-v1.d/
echo -e "\nKey ${id} opened. Try \`gpgtool extend ${id}\` next."
fi
done
}