fetch: fix showing already archived URLs

This commit is contained in:
Lucas 2020-03-21 11:54:45 +00:00
parent 17b440be69
commit 649ead1257

View File

@ -25,6 +25,11 @@ fetch_cmd()
fi
}
find_dir()
{
find "$ARCHIVE_BASEDIR" -type d -name "$1"
}
torsocks=torsocks
while getopts T flag; do
case $flag in
@ -53,7 +58,7 @@ for url; do
if grep -q "^$url\$" "$everything"; then
printf "%s: \"%s\" already fetched.\n" "${0##*/}" "$url" >&2
printf "%s\n" "$outdir/file"
printf "%s/file\n" "$(find_dir "$sha")"
continue
fi