diff --git a/main.sh b/main.sh index d617a2c..1b4c0a5 100755 --- a/main.sh +++ b/main.sh @@ -16,5 +16,6 @@ cd clones while read -r line ; do if [ -z "$line" ] ; then continue ; fi - wget -c -w 10 --random-wait -x -m -p --follow-ftp -k "$line" -a "../logs/$line/err.log" & + mkdir -p "../logs/$line/" + wget -c -w 10 --random-wait -x -m -p --follow-ftp -k "$line" 2> "../logs/$line/err.log" & done < "../$sourcefile"