Skip to content

Commit 80658a8

Browse files
authored
Merge pull request #549 from otteryc/mac_gsha1
Ensure Compatibility with BSD sha1sum implementation
2 parents affa118 + f983718 commit 80658a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/external.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ define verify
6868
| sort \
6969
| $(SHA1SUM) \
7070
| cut -f 1 -d ' ' > $(SHA1_FILE2) && cmp $(SHA1_FILE1) $(SHA1_FILE2))), \
71-
($(eval VERIFIER := echo "$(strip $(1)) $(strip $(2))" | $(SHA1SUM) -c)) \
71+
($(eval VERIFIER := (ls $(2) >/dev/null 2>&1 || echo FAILED) && echo "$(strip $(1)) $(strip $(2))" | $(SHA1SUM) -c -)) \
7272
))
7373
$(eval _ := $(shell $(VERIFIER) 2>&1))
7474
$(eval _ := \

0 commit comments

Comments
 (0)