1
0
mirror of https://github.com/drduh/YubiKey-Guide.git synced 2025-03-12 19:06:04 +00:00

ensure newline is expanded

echo from GNU coreutils requires -e to interpret backslash escape sequences

without this, the encrypted file contains `\ntest message`
This commit is contained in:
Adam Monsen 2025-01-12 06:43:45 -08:00 committed by GitHub
parent 219423db05
commit 6c77d5dbe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1074,7 +1074,7 @@ YubiKey is now ready for use!
Encrypt a message to yourself (useful for storing credentials or protecting backups): Encrypt a message to yourself (useful for storing credentials or protecting backups):
```console ```console
echo "\ntest message string" | \ echo -e "\ntest message string" | \
gpg --encrypt --armor \ gpg --encrypt --armor \
--recipient $KEYID --output encrypted.txt --recipient $KEYID --output encrypted.txt
``` ```