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
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
#---------------------------------------------------------