Skip to content

Instantly share code, notes, and snippets.

@andyg0808
Created April 9, 2013 02:24
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 andyg0808/5342434 to your computer and use it in GitHub Desktop.
Save andyg0808/5342434 to your computer and use it in GitHub Desktop.
Two-line script to make Git Annex able to be a download manager for FlashGot (although it doesn't provide user-visible status). To use, install FlashGot (http://flashgot.net/) and add a new download manager. Specify this script as the download manager executable and use something like [FOLDER] [URL] as the template for its command line arguments.
#!/bin/bash
# $1=folder to cd to (must be a git annex repo)
# $2=URL to download
cd "$1"
git-annex addurl "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment