diff options
-rwxr-xr-x | client/engine/Image.lib | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 98d3d19b..75541dca 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -240,10 +240,7 @@ if [ "$#" -eq 4 ] || [ "$#" -eq 5 ]; then IMGCACHEDIR=$(ogGetMountPoint $(ogFindCache))/opt/opengnsys/images IMGPATH="$IMGCACHEDIR/$IMGFILE" if [ -f "$IMGPATH" ]; then - if [ ! -f "$IMGPATH".full.sum ]; then - md5sum "$IMGPATH" | cut -f1 -d " " > "$IMGPATH".full.sum - fi - MD5FILE=$(cat "$IMGPATH".full.sum) + MD5FILE=$(md5sum "$IMGPATH" | cut -f1 -d " ") MD5WGET=$(wget -qO - "$ogrepo:9999/$IMGFILE.full.sum") if [ "$MD5FILE" != "$MD5WGET" ]; then ogTiptorrentGetToCache "$IMGPATH" "$IMGFILE" |