From 2c8c1bc0d44f53773f7a30eb7a3f9b54c7b8e3c0 Mon Sep 17 00:00:00 2001 From: untypequicode Date: Fri, 25 Oct 2024 23:49:16 +0200 Subject: [PATCH] Ajout des sudo pour le apt au script --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 0b93e31..0269c7e 100755 --- a/install.sh +++ b/install.sh @@ -32,8 +32,8 @@ if ! command -v btop &> /dev/null; then if [[ $REPLY =~ ^[Oo]$ ]]; then # Si l'utilisateur accepte, installer btop echo "Installation de btop en cours..." - apt update - apt install -y btop + sudo apt update + sudo apt install -y btop echo "btop a été installé avec succès!" else echo "Installation de btop annulée." @@ -50,8 +50,8 @@ if ! command -v tree &> /dev/null; then if [[ $REPLY =~ ^[Oo]$ ]]; then # Si l'utilisateur accepte, installer tree echo "Installation de tree en cours..." - apt update - apt install -y tree + sudo apt update + sudo apt install -y tree echo "tree a été installé avec succès!" else echo "Installation de tree annulée." @@ -112,8 +112,8 @@ if ! command -v npm &> /dev/null; then if [[ $REPLY =~ ^[Oo]$ ]]; then # Si l'utilisateur accepte, installer npm echo "Installation de npm en cours..." - apt update - apt install -y npm + sudo apt update + sudo apt install -y npm echo "npm a été installé avec succès!" # Vérifier si nvm est déjà installé if ! command -v nvm &> /dev/null; then