grouping pre-tests (zenity,ffmpeg)

This commit is contained in:
Djan GICQUEL 2022-07-27 08:43:24 +02:00
parent 9ff520c484
commit 982c52693d
1 changed files with 7 additions and 6 deletions

View File

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