diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-10-01 15:41:49 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-10-20 10:42:13 +0200 |
commit | 51ae582fe3e8b4dfef46aa4c5e723aa9e3372a78 (patch) | |
tree | 9a464eaa0df0feedbd302e89bba79e4a7b51d7f9 | |
parent | 29d2e67460f0e6b20aaf016b6dd90841c3eba909 (diff) |
#1062 Fix minor tiptorrent integration bugs
* Fix md5sum pipe typo
* Use correct variable for checksum download
-rwxr-xr-x | client/engine/Image.lib | 4 |
1 files 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 |