chiark / gitweb /
keys.list-keepers: Identify the current recovery key instance.
[distorted-keys] / keys.list-keepers
index 297c83e..da47af4 100755 (executable)
@@ -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