keys.delete-keeper: Check all versions of recovery keys.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 16 Jul 2017 01:08:28 +0000 (02:08 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 16 Jul 2017 01:12:33 +0000 (02:12 +0100)
The parameters can change, so it's not right just to check the current
version.

keys.delete-keeper

index 84a3ae9..908e22e 100755 (executable)
@@ -74,7 +74,7 @@ if [ -d $KEYS/recov ]; then
       ## this keeper set, or it also depends on at least one other set.  If
       ## not, add it to the `deps' list.
       this=nil others=nil
-      for kp in $r/current/*.param; do
+      for kp in $ri/*.param; do
        k=${kp##*/}; k=${k%.param}
        case $k in $keeper) this=t ;; *) others=t ;; esac
       done