From efc2221ea7013b3d28180b2ee96b95fbbc31a3b7 Mon Sep 17 00:00:00 2001 From: unfr Date: Wed, 14 May 2025 19:37:43 +0200 Subject: [PATCH] ajout support sudo --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 04c44bb..c42db61 100644 --- a/install.sh +++ b/install.sh @@ -39,17 +39,17 @@ else sudook=false fi +#Vérification des prérequis +echo -e "$BLEU""Vérification si les prérequis sont disponibles""$NORMAL" +BIN_DIR="$HOME/bin" +AUTOPOST_DIR="$HOME/autopost" + # Vérifier si le dossier bin existe, sinon le créer echo -e "$BLEU""Vérification de la présence du dossier bin""$NORMAL" if [ ! -d "$BIN_DIR" ]; then mkdir -p "$BIN_DIR" fi -#Vérification des prérequis -echo -e "$BLEU""Vérification si les prérequis sont disponibles""$NORMAL" -BIN_DIR="$HOME/bin" -AUTOPOST_DIR="$HOME/autopost" - LISTE_APPLIS=() LISTE_APPLIS+=("curl basename php")