Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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