summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2012-11-30 18:43:34 +0100
committerDavid Shaw <dshaw@jabberwocky.com>2012-11-30 18:43:34 +0100
commit3f8ad564674431b4c0c6cff259f02248c80a6ef9 (patch)
tree5edc81432f0efaf0356fd68d603b8f9a97bcc8e2 /doc
parentThe keyserver search menu should honor --keyid-format (diff)
downloadgnupg2-3f8ad564674431b4c0c6cff259f02248c80a6ef9.tar.xz
gnupg2-3f8ad564674431b4c0c6cff259f02248c80a6ef9.zip
Adjust awk to not add trailing whitespace.
* mksamplekeys: Tweak awk script to not add trailing whitespace to blank lines (makes git pre-commit hook unhappy)
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/mksamplekeys5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/mksamplekeys b/doc/mksamplekeys
index bb04cec89..cd56b21ac 100755
--- a/doc/mksamplekeys
+++ b/doc/mksamplekeys
@@ -1,11 +1,10 @@
#/bin/sh
# Generate a samplekeys.asc
-keys='1E42B367 99242560 87978569
- 4F25E3B6 5B0358A2 57548DCD B2D7795E 1CE0C630'
+keys='1E42B367 99242560 87978569 4F25E3B6 5B0358A2 57548DCD B2D7795E 1CE0C630'
for i in $keys; do
- gpg --list-keys $i | awk ' { print " " $0 }'
+ gpg --list-keys $i | awk '{ if ( $0 != "") print " " $0; else print $0; }'
done
echo
gpg --export-options export-minimal --export -a $keys