]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Config: Fix calling b2sum
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Apr 2022 16:03:18 +0000 (16:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Apr 2022 16:03:18 +0000 (16:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config

index d4de6550bc71064de8fe1b6aabccc7ae10c90f39..1d02e969ce4e4e9d774ed3692c683b6c56dd4e9d 100644 (file)
@@ -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