@@ -7,6 +7,7 @@ VIOLET=$(tput setaf 5)
77YELLOW=$( tput setaf 3)
88BOLD=$( tput bold)
99RESET=$( tput sgr0)
10+
1011# ######################################### INITIALISATION ROOT ##########################################
1112# Vérifier si l'utilisateur est root
1213if [[ $EUID -ne 0 ]]; then
@@ -15,6 +16,7 @@ if [[ $EUID -ne 0 ]]; then
1516 sudo " $0 " " $@ "
1617 exit 1
1718fi
19+
1820# Le reste du script ici
1921clear
2022while true ; do
@@ -47,8 +49,10 @@ while true; do
4749 echo " +-------------+------------+-----------------+"
4850 echo " | ${RED}${BOLD} 9. Quitter${RESET} |"
4951 echo " +------------+"
52+
5053 # Lecture du choix de l'utilisateur
5154 read -p " Choisissez une option (1-9) : " choix
55+
5256 # Traitement du choix
5357 case $choix in
5458 1)
@@ -61,19 +65,39 @@ while true; do
6165 ;;
6266 3)
6367 echo " Exécution du script 'new.sh'."
64- bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/new.sh)
68+ if bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/new.sh) ; then
69+ echo " Script 'new.sh' exécuté avec succès."
70+ else
71+ echo " Erreur lors de l'exécution du script 'new.sh'."
72+ fi
73+ read -n 1 -s -r -p " Appuyez sur une touche pour retourner au menu..."
6574 ;;
6675 4)
6776 echo " Exécution du script 'speedtest.sh'."
68- bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/speedtest.sh)
77+ if bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/speedtest.sh) ; then
78+ echo " Script 'speedtest.sh' exécuté avec succès."
79+ else
80+ echo " Erreur lors de l'exécution du script 'speedtest.sh'."
81+ fi
82+ read -n 1 -s -r -p " Appuyez sur une touche pour retourner au menu..."
6983 ;;
7084 5)
7185 echo " Exécution du script 'fastfetch.sh'."
72- bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/refs/heads/main/.assets/fastfetch-install.sh)
86+ if bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/refs/heads/main/.assets/fastfetch-install.sh) ; then
87+ echo " Script 'fastfetch.sh' exécuté avec succès."
88+ else
89+ echo " Erreur lors de l'exécution du script 'fastfetch.sh'."
90+ fi
91+ read -n 1 -s -r -p " Appuyez sur une touche pour retourner au menu..."
7392 ;;
7493 6)
7594 echo " Exécuter 'pterodactyl-panel-reinstaller'"
76- bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/pterodactylpanelreinstall.sh)
95+ if bash <( curl -s https://raw.githubusercontent.com/OverStyleFR/AutoScriptBash/main/.assets/pterodactylpanelreinstall.sh) ; then
96+ echo " Script 'pterodactyl-panel-reinstaller' exécuté avec succès."
97+ else
98+ echo " Erreur lors de l'exécution du script 'pterodactyl-panel-reinstaller'."
99+ fi
100+ read -n 1 -s -r -p " Appuyez sur une touche pour retourner au menu..."
77101 ;;
78102 7)
79103 echo " ${BLUE}${BOLD} Exécuter le Pterodactyl Menu${RESET} "
@@ -92,4 +116,3 @@ while true; do
92116 ;;
93117 esac
94118done
95-
0 commit comments