curl replace wget

This commit is contained in:
qo-op 2020-05-12 15:18:04 +02:00
parent 83d223a8e2
commit 50d140b5dc
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ echo '
'
######## YOUTUBE-DL ##########
if [[ ! $(which youtube-dl) ]]; then
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl || err=1
sudo curl -s https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl || err=1
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo chown $(whoami) /usr/local/bin/youtube-dl
fi

View File

@ -18,7 +18,7 @@ ME="${0##*/}"
######## YOUTUBE-DL ##########
if [[ ! $(which youtube-dl) ]]; then
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl || err=1
sudo curl -s https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl || err=1
sudo chmod a+rx /usr/local/bin/youtube-dl
sudo chown $(whoami) /usr/local/bin/youtube-dl
fi