Skip to content

Instantly share code, notes, and snippets.

@janpecha
Created August 23, 2012 17:17
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 janpecha/3438895 to your computer and use it in GitHub Desktop.
Save janpecha/3438895 to your computer and use it in GitHub Desktop.
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
@janpecha
Copy link
Author

Moved to my scripts repository. Go to http://www.github.com/janpecha/scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment