diff --git a/gpgtool b/gpgtool index b95a3da..7d86e06 100755 --- a/gpgtool +++ b/gpgtool @@ -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 }