ytdl.bash 356 B

12345678910111213141516
  1. #!/bin/bash
  2. ## Download da última versão do youtube-dl
  3. YTDL_URL="https://yt-dl.org/downloads/latest/youtube-dl"
  4. YTDL_PATH="${HOME}/bin/youtube-dl"
  5. if [ ! -f ${YTDL_PATH} ]
  6. then
  7. wget -c ${YTDL_URL} -O ${YTDL_PATH}
  8. chmod ug+x ${YTDL_PATH}
  9. wget -c ${YTDL_URL}.sig -O youtube-dl.sig
  10. gpg --verify youtube-dl.sig ${YTDL_PATH}
  11. rm youtube-dl.sig
  12. fi