diff --git a/script.sh b/script.sh index 3808ac9..296f013 100644 --- a/script.sh +++ b/script.sh @@ -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" else 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 done < links.txt + rm -f "links.txt" + echo "Job finished." else echo "Error downloading books links, exiting." exit