From 9b8b048dbe0ceb834d2665f331e858e697bcfe69 Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Tue, 12 Jul 2022 08:48:29 +0800
Subject: [PATCH] add comment

---
 unlock_keyrings.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/unlock_keyrings.sh b/unlock_keyrings.sh
index 3211973..3177b34 100755
--- a/unlock_keyrings.sh
+++ b/unlock_keyrings.sh
@@ -28,6 +28,9 @@ if [[ ! "$smartcard_pin" = '' ]]; then
     gpg_options=("--pinentry-mode" "loopback" "--passphrase" "$smartcard_pin")
 fi
 
+# In arch GPG 2.2.24, you can not use smartcard before running this cmd.
+# timeout 0.1s gpg --edit-card
+
 cd `where_am_i` &&
 gpg "${gpg_options[@]}" --decrypt "$secret_file" | bin/unlock_keyrings --secret-file - --quiet
 
-- 
GitLab