From b411de67b5dbe46b58a5d70635c1248c7e189114 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 20 Sep 2012 01:01:22 +0100 Subject: [PATCH] keys.list-keepers: Identify the current recovery key instance. Organization: Straylight/Edgeware From: Mark Wooding Otherwise we never print anything useful about key revelation status. --- keys.list-keepers | 4 ++++ 1 file changed, 4 insertions(+) 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 -- [mdw]