Skip to content

Instantly share code, notes, and snippets.

@conoro
Created October 20, 2017 17:20
Show Gist options
  • Save conoro/b464c9dad59eb499acb2785e88639973 to your computer and use it in GitHub Desktop.
Save conoro/b464c9dad59eb499acb2785e88639973 to your computer and use it in GitHub Desktop.
Grab the latest version of youtube-dl every week
cd C:\Users\conor
bash -c "./update-youtube-dl.sh"
#!/usr/bin/bash
cd /d/apps/youtube-dl
rm -rf youtube-dl.exe
curl -L "$(curl -s https://api.github.com/repos/rg3/youtube-dl/releases | grep browser_download_url | grep 'youtube-dl[.]exe' | head -n 1 | cut -d '"' -f 4)" > /d/apps/youtube-dl/youtube-dl.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment