diff --git a/split-dl.sh b/split-dl.sh index ba43081..1dd8c39 100755 --- a/split-dl.sh +++ b/split-dl.sh @@ -115,9 +115,9 @@ function compall { SIZE=$2 HASH=$3 if $(compdu $FILE $SIZE) && $(comphash $FILE $HASH); then - echo="true" + echo "true" else - echo="false" + echo "false" fi } @@ -332,7 +332,7 @@ until [ "$STATUS" == "F" ]; do fi # 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 "[INFO] Deleting file and starting new download." checkwait