users: use lib.escapeShellArg for group description

This commit is contained in:
Michael Hoang 2024-10-22 10:24:06 +11:00
parent ea7e178ad4
commit ac7932f9de
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ in
if [ -z "$g" ]; then
echo "creating group ${v.name}..." >&2
dscl . -create ${dsclGroup} PrimaryGroupID ${toString v.gid}
dscl . -create ${dsclGroup} RealName '${v.description}'
dscl . -create ${dsclGroup} RealName ${lib.escapeShellArg v.description}
g=${toString v.gid}
fi