From: Mark Wooding Date: Thu, 20 Sep 2012 00:01:22 +0000 (+0100) Subject: keys.list-keepers: Identify the current recovery key instance. X-Git-Tag: 0.99.2~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-keys/commitdiff_plain/b411de67b5dbe46b58a5d70635c1248c7e189114 keys.list-keepers: Identify the current recovery key instance. Otherwise we never print anything useful about key revelation status. --- diff --git a/keys.list-keepers b/keys.list-keepers index 297c83e..da47af4 100755 --- a/keys.list-keepers +++ b/keys.list-keepers @@ -45,6 +45,10 @@ if [ -d $KEYS/recov ]; then for r in *; do if [ ! -d $r ]; then continue; fi + ## Collect the current instance number. + rcur=$(readlink $r/current) + eval rcur_$r=\$rcur + ## Now work through the instances of this recovery key. for ri in $r/*; do