apt remove youtube-dl

This commit is contained in:
qo-op 2021-07-20 19:30:43 +02:00
parent 9bde50fc1e
commit 33a02c838e
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
#!/bin/bash
########################################################################
######## YOUTUBE-DL ##########
if [[ ! $(which youtube-dl) ]]; then
if [[ $(which youtube-dl) ]]; then
sudo apt-get remove youtube-dl
fi
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl || exit 1
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo chown $USER /usr/local/bin/youtube-dl
fi