From 14d43fed222f054f46564f56bc66927e373f61e2 Mon Sep 17 00:00:00 2001 From: pi3141 Date: Tue, 11 Jun 2019 15:15:47 +0200 Subject: [PATCH] Update sync.sh to allow sync with http (not only https) --- src/usr/local/wget-sync/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/local/wget-sync/sync.sh b/src/usr/local/wget-sync/sync.sh index a1d80c3..16a5699 100755 --- a/src/usr/local/wget-sync/sync.sh +++ b/src/usr/local/wget-sync/sync.sh @@ -61,7 +61,7 @@ echo "$wgetoutput" #catch the rejections to subtract from total downloads. urllength=${#url} urllength=$((urllength+1)) -log1loc=$(echo "$wgetoutput" | grep -Eio https://.+ | cut -c $urllength- | grep -v '.*/$') +log1loc=$(echo "$wgetoutput" | grep -Eio https?://.+ | cut -c $urllength- | grep -v '.*/$') fixurls () { echo "$log1loc" | while read line