diff options
author | drduh <github@duh.to> | 2024-06-30 16:28:39 -0700 |
---|---|---|
committer | drduh <github@duh.to> | 2024-06-30 16:28:39 -0700 |
commit | b7baf0cbd0880f19be60de2a887dd742634a21d4 (patch) | |
tree | baae27516e2ff63239e1d4520e6e4b6005af041e /README.md | |
parent | Export variables throughout (diff) | |
download | YubiKey-Guide-b7baf0cbd0880f19be60de2a887dd742634a21d4.tar.gz |
Fix secret function
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1027,7 +1027,7 @@ Decrypt the message - a prompt for the User PIN will appear: gpg --decrypt --armor encrypted.txt ``` -To encrypt to multiple recipients/keys (set the preferred key ID last): +To encrypt to multiple recipients/keys, set the preferred key ID last: ```console echo "test message string" | \ @@ -1040,7 +1040,7 @@ Use a [shell function](https://github.com/drduh/config/blob/master/zshrc) to mak ```console secret () { - output=~/"${1}".$(date +%s).enc + output="${1}".$(date +%s).enc gpg --encrypt --armor --output ${output} \ -r $KEYID "${1}" && echo "${1} -> ${output}" } |