mirror of https://git.wownero.com/dsc/mxe.git
MXE_GET_GITHUB_SHA: simplify regex and make the hash longer
This commit is contained in:
parent
abd129934d
commit
1bd25fc0ec
2
Makefile
2
Makefile
|
@ -119,7 +119,7 @@ MAKE_SHARED_FROM_STATIC = \
|
|||
|
||||
define MXE_GET_GITHUB_SHA
|
||||
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/heads/$(strip $(2))' | \
|
||||
$(SED) -n 's#.*"sha": "\([^<]\{7\}\)[^<]\{3\}.*#\1#p' | \
|
||||
$(SED) -n 's#.*"sha": "\([^"]\{10\}\).*#\1#p' | \
|
||||
head -1
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in New Issue