diff --git a/README.md b/README.md index f957ef8..646d8b9 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ slow, so there's hashes for them, they are sha256 hashes of those JSON files in the api So what you do, replace all `.` in the API name with \_, -then make the request to `/api_hash/....txt` and you will -get the hash, for example: +then make the request to `/api_hash/..._hash.txt` and you will +get the hash, for example: # Usage API diff --git a/scripts/apis.sh b/scripts/apis.sh index 705c6e8..8c86eef 100755 --- a/scripts/apis.sh +++ b/scripts/apis.sh @@ -30,7 +30,7 @@ main() { for api in api/*; do api_base="${api##*/}" - sha256sum "$api" | awk '{ print $1 }' >"api_hash/${api_base//./_}.txt" + sha256sum "$api" | awk '{ print $1 }' | tr -d '\n' >"api_hash/${api_base//./_}_hash.txt" done echo 'done'