From: Michael Tremer Date: Mon, 4 Apr 2022 16:03:18 +0000 (+0000) Subject: Config: Fix calling b2sum X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62d9b7bd2c347bb45714d68fb6eb1408e3d7142a;p=people%2Fms%2Fipfire-2.x.git Config: Fix calling b2sum Signed-off-by: Michael Tremer --- diff --git a/lfs/Config b/lfs/Config index d4de6550bc..1d02e969ce 100644 --- a/lfs/Config +++ b/lfs/Config @@ -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