Update script.

This commit is contained in:
Eduard Tolosa 2019-08-03 23:01:12 -05:00
parent 314619b240
commit 50d580fc40

View file

@ -19,9 +19,11 @@ if wget -q -O "links-temp.txt" "https://msdnshared.blob.core.windows.net/media/2
echo "Sucessfully downloaded book number: $COUNTER" echo "Sucessfully downloaded book number: $COUNTER"
else else
COUNTER=$[$COUNTER + 1]; COUNTER=$[$COUNTER + 1];
echo "A error as ocurred while downloading the book: $COUNTER" echo "A error as ocurred while downloading the book: $COUNTER from link: $LINK"
fi fi
done < links.txt done < links.txt
rm -f "links.txt"
echo "Job finished."
else else
echo "Error downloading books links, exiting." echo "Error downloading books links, exiting."
exit exit