mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Check if file exists on remote server before running aria2 downloader (#2435)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user