chiark / gitweb /
keyfunc.sh.in: Fix the OpenSSL `dgst' rune.
[distorted-keys] / keyfunc.sh.in
index dda8a2eea0327f41ceb9c758faca6afb57308991..02bc10dd8af0d70e94ccb985cdf3906348e2997e 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
 }