diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2024-10-22 10:24:06 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2024-10-22 19:43:18 +1100 |
| commit | ac7932f9de36b8126abcb9d4966d5d95fcadd807 (patch) | |
| tree | f8c38c4836867ac236e1879fd6f07f9e172dbf1a /tests | |
| parent | ea7e178ad4113c2134c5b734e3198ebbc591af0b (diff) | |
users: use `lib.escapeShellArg` for group description
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/users-groups.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/users-groups.nix b/tests/users-groups.nix index 87babb3..d15909b 100644 --- a/tests/users-groups.nix +++ b/tests/users-groups.nix @@ -26,7 +26,7 @@ # checking group creation in /activate grep "dscl . -create ${lib.escapeShellArg "/Groups/foo"} PrimaryGroupID 42000" ${config.out}/activate - grep "dscl . -create ${lib.escapeShellArg "/Groups/foo"} RealName 'Foo group'" ${config.out}/activate + grep "dscl . -create ${lib.escapeShellArg "/Groups/foo"} RealName ${lib.escapeShellArg "Foo group"}" ${config.out}/activate grep "dscl . -create ${lib.escapeShellArg "/Groups/created.group"} PrimaryGroupID 42001" ${config.out}/activate grep -qv "dscl . -delete ${lib.escapeShellArg "/Groups/created.group"}" ${config.out}/activate |
