From 6c76f725fa28255a3356255d2c4c163a9d847af7 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Sat, 20 Jun 2015 18:09:27 +0300 Subject: [PATCH] fixing logic mistake: now sourcing file before renaming it; comment out debug message --- split-dl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/split-dl.sh b/split-dl.sh index 8c11007..7b37227 100755 --- a/split-dl.sh +++ b/split-dl.sh @@ -50,7 +50,7 @@ if [ "$FILE" == "" ] || [ "$MODE" == "" ]; then echo "Missing arguments! Please define the mode with -m and the file/link with -f. More info with -h." exit 1 else - echo "OK" + #echo "$MODE $SPLITSIZE $INFO $FILE $CHECKSUM" fi @@ -221,9 +221,9 @@ if [ -e $INFO ]; then rm $INFO; fi wget -q $URL/$INFO # Rename info.cfg to avoid colissions and source it +source $INFO mv $INFO $BIGNAME-$INFO INFO=$BIGNAME-$INFO -source $INFO FOLDER="dl-$BIGNAME"