mirror of
https://github.com/NixOS/nix
synced 2025-07-03 10:21:47 +02:00
nix hash convert: Don't fail on uppercase base-16 hashes
(cherry picked from commit 33b645cedf
)
This commit is contained in:
parent
26741bcfda
commit
97f0c68389
2 changed files with 9 additions and 3 deletions
|
@ -98,6 +98,8 @@ try3() {
|
|||
expectStderr 1 nix hash convert --hash-algo "$1" --from base16 "$3" | grepQuiet "input hash"
|
||||
expectStderr 1 nix hash convert --hash-algo "$1" --from nix32 "$4" | grepQuiet "input hash"
|
||||
|
||||
# Base-16 hashes can be in uppercase.
|
||||
nix hash convert --hash-algo "$1" --from base16 "$(echo $2 | tr [a-z] [A-Z])"
|
||||
}
|
||||
|
||||
try3 sha1 "800d59cfcd3c05e900cb4e214be48f6b886a08df" "vw46m23bizj4n8afrc0fj19wrp7mj3c0" "gA1Zz808BekAy04hS+SPa4hqCN8="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue