From c07a58ef9d8a26577498e74005dc879ac3b66b26 Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Fri, 30 Oct 2020 12:28:20 +0100 Subject: [PATCH] updated logging --- main.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"