renaming server files in info.cfg because it gets sourced an may interfere with locally defined variabls

This commit is contained in:
2015-06-22 13:08:12 +03:00
parent 2c6cf362b6
commit 7b41c03e39

View File

@@ -211,9 +211,9 @@ echo "BIGSIZE=$BIGSIZE" >> $INFO
echo "BIGHASH=$BIGHASH" >> $INFO echo "BIGHASH=$BIGHASH" >> $INFO
echo >> $INFO echo >> $INFO
# Variables info # Variables info
echo "CHECKSUM=$CHECKSUM" >> $INFO echo "SRV_CHECKSUM=$CHECKSUM" >> $INFO
echo "SPLITSIZE=$SPLITSIZE" >> $INFO echo "SRV_SPLITSIZE=$SPLITSIZE" >> $INFO
echo "INFO=$INFO" >> $INFO echo "SRV_INFO=$INFO" >> $INFO
echo >> $INFO echo >> $INFO
echo "[INFO] Splitting big file into smaller parts..." echo "[INFO] Splitting big file into smaller parts..."
@@ -261,7 +261,7 @@ wget -q $URL/$INFO
# Rename info.cfg to avoid colissions and source it # Rename info.cfg to avoid colissions and source it
source $INFO source $INFO
mv $INFO $BIGNAME-$INFO mv $INFO dl-$BIGNAME-$INFO
INFO=dl-$BIGNAME-$INFO INFO=dl-$BIGNAME-$INFO
FOLDER="dl-$BIGNAME" FOLDER="dl-$BIGNAME"