mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Config: Fix calling b2sum
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -347,13 +347,13 @@ endef
|
||||
define LOAD
|
||||
@echo -e "$(MESSAGE)Download: $($(notdir $@))"
|
||||
wget -T 60 -t 1 -nv -U "IPFireSourceGrabber/2.x" $($(notdir $@)) -O $(DIR_TMP)/$(notdir $@)
|
||||
[ "$($(notdir $@)_BLAKE2)" = "$(firstword $(shell b2sum $(DIR_TMP)/$(notdir $@)))" ] # detect page not found answer
|
||||
[ "$($(notdir $@)_BLAKE2)" = "$$(b2sum $(DIR_TMP)/$(notdir $@) | awk '{ print $$1 }')" ] # detect page not found answer
|
||||
mv $(DIR_TMP)/$(notdir $@) $(DIR_DL)
|
||||
endef
|
||||
|
||||
define B2SUM
|
||||
# error mean file signature don't match the one in lfs script
|
||||
[ "$($@_BLAKE2)" = "$(firstword $(shell b2sum $(DIR_DL)/$@))" ] && echo "$@ checksum OK"
|
||||
[ "$($@_BLAKE2)" = "$$(b2sum $(DIR_DL)/$@ | awk '{ print $$1 }')" ] && echo "$@ checksum OK"
|
||||
endef
|
||||
|
||||
define PAK
|
||||
|
||||
Reference in New Issue
Block a user