keyfunc.sh.in: Fix the OpenSSL `dgst' rune.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 23 Feb 2012 02:54:24 +0000 (02:54 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 23 Feb 2012 03:14:38 +0000 (03:14 +0000)
A compatibility hack was a nice idea, but it helps if you don't throw
away the interesting answer and keep the boring and incompatible extra
filename.

keyfunc.sh.in

index dda8a2e..02bc10d 100644 (file)
@@ -322,6 +322,7 @@ nubid () {
   ## to demonstrate the same idiocy as GNU mumblesum.
   set _ $({ echo "distorted-keys nubid"; cat -; } |
     openssl dgst -${kprop_nubid_hash-sha256})
+  if [ $# -gt 2 ]; then shift; fi
   echo $2
 }