Update Function.sh

This commit is contained in:
gitea committed 2026-10-09 07:57:45 +02:00
1 parent 462d2699ff
commit e27719e794
1 file changed
+3 -3
+3 -3
View File
@@ -3,7 +3,7 @@
function exist_user { function exist_user {
local VariableLocale="Locale" local VariableLocale="Locale"
VariableGlobale="Globale" VariableGlobale="Globale"
echo "Saisir le nom d’un utilisateur : \c" echo "Saisir le nom d'un utilisateur : \c"
read user read user
if grep -q "^$user": /etc/passwd if grep -q "^$user": /etc/passwd
then then
@@ -13,10 +13,10 @@ function exist_user {
} }
if exist_user if exist_user
then then
echo "L’utilisateur $user existe" echo "L'utilisateur $user existe"
exit 0 exit 0
else else
echo -e "\033[0;31m L’utilisateur $user n’est pas defini \033[0m" echo -e "\033[0;31m L'utilisateur $user n’est pas defini \033[0m"
exit 1 exit 1
fi fi