From 8f6038d5e0b047f63760dfd7bf6192d21000d46b Mon Sep 17 00:00:00 2001 From: "aboulai.bayo" Date: Wed, 19 Feb 2025 16:56:11 +0100 Subject: [PATCH] correcton encore --- sisr1/tp04_scripts_admin/createGroups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sisr1/tp04_scripts_admin/createGroups.sh b/sisr1/tp04_scripts_admin/createGroups.sh index 5be0705..34837dc 100644 --- a/sisr1/tp04_scripts_admin/createGroups.sh +++ b/sisr1/tp04_scripts_admin/createGroups.sh @@ -4,7 +4,7 @@ fichier=Users.csv while read ligne # définit la variable "ligne" comme le contenu de la ligne du fichier en cours de lecture do metier=$(echo $ligne | cut -d "," -f5 ) #A chaque utilisateur itération,stocker le méttier - if [[ $(grep $metier /etc/group) == ""]] ; then + if [[ $(grep $metier /etc/group) == "" ]] ; then groupadd $metier fi done < $fichier \ No newline at end of file