diff --git a/install.sh b/install.sh index cb266e5..20eee41 100644 --- a/install.sh +++ b/install.sh @@ -40,8 +40,8 @@ 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" +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" @@ -192,7 +192,10 @@ chmod -R 755 "$AUTOPOST_DIR" LISTE_APPLIS+=("$BIN_DIR/postauto") -source ~/.bashrc +# Définir le chemin du fichier bashrc +BASHRC_FILE="$HOME/.bashrc" + +source $BASHRC_FILE manquants=() @@ -209,9 +212,6 @@ else echo -e "${VERT}Toutes les dépendances sont disponibles.${NORMAL}" fi -# Définir le chemin du fichier bashrc -BASHRC_FILE="$HOME/.bashrc" - # Marqueurs pour identifier la section ajoutée DEBUT_MARKER="# DEBUT COMPLETION POSTAUTO" FIN_MARKER="# FIN COMPLETION POSTAUTO" @@ -266,12 +266,6 @@ log() { echo -e "\033[1;32m$1\033[0m" } -# Définition du répertoire AUTOPOST_DIR (ajuster si nécessaire) -AUTOPOST_DIR="$HOME/autopost" - -# Création du dossier si inexistant -mkdir -p "$AUTOPOST_DIR" - # Définir le répertoire NVM export NVM_DIR="$HOME/.nvm"