diff --git a/unlock_keyrings.sh b/unlock_keyrings.sh index 3211973f9cc3ca4baf8188e4ce559acdc427ae49..3177b349876997f53a87c1afe4e8dddc59b22908 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