Skip to content

Instantly share code, notes, and snippets.

@iamjohnnym
Created January 26, 2016 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamjohnnym/96267fafa5cf4781da03 to your computer and use it in GitHub Desktop.
Save iamjohnnym/96267fafa5cf4781da03 to your computer and use it in GitHub Desktop.
#! /bin/bash
## ./curl_resume.sh https://example.com
export done=1;
while [ $done -gt 0 ]; do
/usr/bin/curl -O -C - $1;
export done=$?;
done
if [ $done -eq 0 ]; then
echo "Downloaded $1";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment