Shortcut for youtube-dl
#!/bin/bash | |
# saves the path to this script's directory | |
dir=` dirname $0 ` | |
# absolutizes the path if necessary | |
if echo $dir | grep -v ^/ > /dev/null; then | |
dir=` pwd `/$dir | |
fi | |
# runs youtube-dl with script's arguments | |
youtube-dl -t $* | |
# version: 2012-08-23-1 | |
# based on Nette Test 'run-tests.sh' script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
Moved to my
scripts
repository. Go to http://www.github.com/janpecha/scripts.