Skip to content

Commit

Permalink
fix: update typos and parameter count checking
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed Aug 7, 2020
1 parent fc495a9 commit 5d8cca2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/verify-parameters-json.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#!/bin/sh

# This script verifies that a given `.params` file (and the corresponding
# `.vk` file) is part of `parameters.json` as has the correct digest.
# `.vk` file) is part of `parameters.json` and has the correct digest.
#
# This script runs on POSIX compatible shells. You need to have standard
# utilities (`basename`, `head`, `grep`) as well as have `jq` and `b2sum`
# installed.
#
# The input a `parameter.json` file and a `.params' file.
# The inputs are a `parameter.json` file and a `.params' file.

if [ "${#}" -ne 1 ]; then
if [ "${#}" -ne 2 ]; then
echo "Verify that a given .params file (and the corresponding .vk file)"
echo "is part of parameters.json as has the correct digest."
echo "is part of parameters.json and has the correct digest."
echo ""
echo "Usage: $(basename "${0}") parameters.json parameter-file.params"
exit 1
Expand Down

0 comments on commit 5d8cca2

Please sign in to comment.