fixing logic mistake: now sourcing file before renaming it; comment out debug message
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user