diff --git a/youtube-dl-install.sh b/youtube-dl-install.sh index 3d426ea..9a30620 100644 --- a/youtube-dl-install.sh +++ b/youtube-dl-install.sh @@ -1,9 +1,15 @@ #! /bin/bash -if [ ! $(which zenity) ];then +if ! which zenity ;then echo "Zenity n'est pas installé, installer zenity et relancer le script.";exit fi +if ! which ffmpeg ; then +echo "ffmpeg n'est pas installé, mais est requis.";exit +exit +fi + + #--------------------------------------------------------- # Variables #--------------------------------------------------------- @@ -64,11 +70,6 @@ EOF f_TouchePourContinuer clear -if ! which ffmpeg ; then -echo "ffmpeg n'est pas installé, mais est requis.";exit -exit -fi - #--------------------------------------------------------- # Installation youtube-dl #---------------------------------------------------------