chiark / gitweb /
keys.list-recov: Remove spurious `.recov' suffix from listed secrets.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 20 Sep 2012 00:02:18 +0000 (01:02 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 20 Sep 2012 00:10:18 +0000 (01:10 +0100)
It's not correct for users to provide it, so we shouldn't print it.

keys.list-recov

index 24978aa..e05dc33 100755 (executable)
@@ -87,7 +87,7 @@ else
       ## instance.
       anyp=nil
       for sf in $(cd $ri; find . -type f -name '*.recov' -print); do
-       s=${sf#./}
+       s=${sf#./}; s=${s%.recov}
        case $anyp in nil) anyp=t; echo "      secrets" ;; esac
        echo "  $s"
       done