From 21648f8ebaf5071c61bfce5a42838841ca5f653b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 25 Feb 2020 11:42:27 +0100 Subject: bin/generate-key-graph: take last 8 characters - this is, what gpg does, too --- bin/generate-key-graph | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/generate-key-graph b/bin/generate-key-graph index 6dae873..3c5063f 100755 --- a/bin/generate-key-graph +++ b/bin/generate-key-graph @@ -77,7 +77,7 @@ expiration_color() { while read -r _ fp; do printf '"%s"[label="packager key %s\\n%s",color="#0000ff",fontcolor="%s"];\n' \ "${fp}" \ - "${fp:0:8}" \ + "${fp: -8}" \ "$(get_user_info "${fp}")" \ "$(expiration_color "${fp}")" done \ @@ -119,7 +119,7 @@ expiration_color() { printf '"%s-%s"[label="master key %s\\n%s",color="#00ff00",fontcolor="%s"];\n' \ "${kpf}" \ "${fp}" \ - "${fp:0:8}" \ + "${fp: -8}" \ "$(get_user_info "${fp}")" \ "$(expiration_color "${fp}")" done -- cgit v1.2.3-70-g09d2