Created
April 9, 2013 02:24
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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