This commit is contained in:
aliriza committed 2023-07-21 07:09:40 +00:00
1 parent 0de75e5023
commit 416964a0db
1 file changed
+1 -1
+1 -1
View File
@@ -5,7 +5,7 @@ cat /etc/passwd.d/* | sed "s/#.*//g"| while read line ; do
: skip empty line
else
uid=$(echo $line | cut -f2 -d":")
if grep "x:$uid: "/etc/passwd > /dev/null ; then
if ! grep "x:$uid: "/etc/passwd > /dev/null ; then
echo "${line}" >> /etc/passwd
fi
fi