From 51ae582fe3e8b4dfef46aa4c5e723aa9e3372a78 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 1 Oct 2021 15:41:49 +0200 Subject: #1062 Fix minor tiptorrent integration bugs * Fix md5sum pipe typo * Use correct variable for checksum download --- client/engine/Image.lib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 7c9ba704..4453bcfc 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -242,10 +242,10 @@ if [ "$#" -eq 4 ] || [ "$#" -eq 5 ]; then IMGPATHPART1="$IMGPATH.1" if [ -f "$IMGPATHPART1" ]; then if [ ! -f "$IMGPATH".full.sum ]; then - cat "$IMGPATH"*[0-3] | md5sum "$IMGPATH" | cut -f1 -d " " > "$IMGPATH".full.sum + cat "$IMGPATH"*[0-3] | md5sum | cut -f1 -d " " > "$IMGPATH".full.sum fi MD5FILE=$(cat "$IMGPATH".full.sum) - MD5WGET=$(wget -qO - "$ogrepo:9999/$IMGPATH.full.sum") + MD5WGET=$(wget -qO - "$ogrepo:9999/$IMGFILE.full.sum") if [ "$MD5FILE" != "$MD5WGET" ]; then ogTiptorrentGetToCache "$IMGPATH" "$IMGFILE" fi -- cgit v1.2.3-18-g5258