mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix hex check.
This commit is contained in:
parent
af86bfb07d
commit
3b6e131d85
@ -52,7 +52,7 @@ if (NOT SOL_COMMIT_HASH)
|
|||||||
message(FATAL_ERROR "Unable to determine commit hash. Either compile from within git repository or "
|
message(FATAL_ERROR "Unable to determine commit hash. Either compile from within git repository or "
|
||||||
"supply a file called commit_hash.txt")
|
"supply a file called commit_hash.txt")
|
||||||
endif()
|
endif()
|
||||||
if (NOT SOL_COMMIT_HASH MATCHES [a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9])
|
if (NOT SOL_COMMIT_HASH MATCHES [a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])
|
||||||
message(FATAL_ERROR "Malformed commit hash \"${SOL_COMMIT_HASH}\". It has to consist of exactly 8 hex digits.")
|
message(FATAL_ERROR "Malformed commit hash \"${SOL_COMMIT_HASH}\". It has to consist of exactly 8 hex digits.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user