fixing wrong echo in function; fixing wrong variable when hash is wrong
This commit is contained in:
@@ -115,9 +115,9 @@ function compall {
|
|||||||
SIZE=$2
|
SIZE=$2
|
||||||
HASH=$3
|
HASH=$3
|
||||||
if $(compdu $FILE $SIZE) && $(comphash $FILE $HASH); then
|
if $(compdu $FILE $SIZE) && $(comphash $FILE $HASH); then
|
||||||
echo="true"
|
echo "true"
|
||||||
else
|
else
|
||||||
echo="false"
|
echo "false"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -332,7 +332,7 @@ until [ "$STATUS" == "F" ]; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# File already exists, has correct size, but has wrong hashsum
|
# File already exists, has correct size, but has wrong hashsum
|
||||||
elif [ -e $SMALLPATH ] && $(compdu $SMALLPATH SMALLSIZE) && ! $(comphash $SMALLPATH $SMALLHASH); then
|
elif [ -e $SMALLPATH ] && $(compdu $SMALLPATH $SMALLSIZE) && ! $(comphash $SMALLPATH $SMALLHASH); then
|
||||||
echo "[ERROR] Hashsum is different but file has same size."
|
echo "[ERROR] Hashsum is different but file has same size."
|
||||||
echo "[INFO] Deleting file and starting new download."
|
echo "[INFO] Deleting file and starting new download."
|
||||||
checkwait
|
checkwait
|
||||||
|
|||||||
Reference in New Issue
Block a user