From 62d9b7bd2c347bb45714d68fb6eb1408e3d7142a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 4 Apr 2022 16:03:18 +0000 Subject: [PATCH] Config: Fix calling b2sum Signed-off-by: Michael Tremer --- lfs/Config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5