fixing logic mistake: now sourcing file before renaming it; comment out debug message

This commit is contained in:
2015-06-20 18:09:27 +03:00
parent 3c96ea3097
commit 6c76f725fa

View File

@@ -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"