Check if file exists on remote server before running aria2 downloader (#2435)
This commit is contained in:
parent
7907a502a3
commit
ecab2ce68b
@ -1202,6 +1202,9 @@ download_and_verify()
|
||||
return
|
||||
fi
|
||||
|
||||
# check if file exists on remote server before running aria2 downloader
|
||||
[[ ! `wget -S --spider ${server}${remotedir}/${filename} 2>&1 | grep 'HTTP/1.1 200 OK'` ]] && return
|
||||
|
||||
cd "${localdir}" || exit
|
||||
|
||||
# use local control file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user