fetch: fix showing already archived URLs
This commit is contained in:
parent
17b440be69
commit
649ead1257
@ -25,6 +25,11 @@ fetch_cmd()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
find_dir()
|
||||||
|
{
|
||||||
|
find "$ARCHIVE_BASEDIR" -type d -name "$1"
|
||||||
|
}
|
||||||
|
|
||||||
torsocks=torsocks
|
torsocks=torsocks
|
||||||
while getopts T flag; do
|
while getopts T flag; do
|
||||||
case $flag in
|
case $flag in
|
||||||
@ -53,7 +58,7 @@ for url; do
|
|||||||
|
|
||||||
if grep -q "^$url\$" "$everything"; then
|
if grep -q "^$url\$" "$everything"; then
|
||||||
printf "%s: \"%s\" already fetched.\n" "${0##*/}" "$url" >&2
|
printf "%s: \"%s\" already fetched.\n" "${0##*/}" "$url" >&2
|
||||||
printf "%s\n" "$outdir/file"
|
printf "%s/file\n" "$(find_dir "$sha")"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user