I have a bash script that checks to see if a file exists in a web directory. If the file doesn't exist, it simply quits. If the file does exist in the web directory, it downloads it.The script works correctly however, I just measured a 5:00 minute+ lag time before the script was actually triggered (Line 4) after meeting the exists condition.Am I missing something in this script that is delaying the script from running?Bash Script Code:url=http://website.url/directory/file.txtif curl -f ${url} >/dev/null 2>&1; then  bash some_bash_script.shelse  exit 0fi
Long Delay Before Curl Download
linux;bash;curl
I ended up using wget --spider to bypass the long download delay with curl.Modified Bash Script:url=http://website.url/directory/file.txtif wget --spider ${url} >/dev/null 2>&1; then  bash some_bash_script.shelse  exit 0fi