Skip to content

Commit 3f8ad56

Browse files
committed
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)
1 parent 7602d9e commit 3f8ad56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/mksamplekeys

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#/bin/sh
22
# Generate a samplekeys.asc
33

4-
keys='1E42B367 99242560 87978569
5-
4F25E3B6 5B0358A2 57548DCD B2D7795E 1CE0C630'
4+
keys='1E42B367 99242560 87978569 4F25E3B6 5B0358A2 57548DCD B2D7795E 1CE0C630'
65

76
for i in $keys; do
8-
gpg --list-keys $i | awk ' { print " " $0 }'
7+
gpg --list-keys $i | awk '{ if ( $0 != "") print " " $0; else print $0; }'
98
done
109
echo
1110
gpg --export-options export-minimal --export -a $keys

0 commit comments

Comments
 (0)