From 0f914c825fc74bf1a7b50e399f910b2901ced402 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Tue, 19 Jul 2022 14:07:00 +0200 Subject: [PATCH] `open` verbosity --- gpgtool | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }