diff options
| author | Emily <vcs@emily.moe> | 2024-09-10 22:10:38 +0100 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2024-09-10 22:11:20 +0100 |
| commit | dea497f67a641d2d85f5673c3695f0fe43d46f64 (patch) | |
| tree | f695a7aedc71ed9726ad8aab294bd373494f6b09 | |
| parent | 5b2d8e9a47c3e17514650d1ce7d5e907114db82b (diff) | |
tests/networking-hostname: update for `lib.escapeShellArg` change
| -rw-r--r-- | tests/networking-hostname.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/networking-hostname.nix b/tests/networking-hostname.nix index 3793958..9e8c6fd 100644 --- a/tests/networking-hostname.nix +++ b/tests/networking-hostname.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ lib, config, pkgs, ... }: { networking.hostName = "EVE"; @@ -7,8 +7,8 @@ test = '' echo checking hostname in /activate >&2 grep "scutil --set ComputerName 'EVE’s MacBook Pro'" ${config.out}/activate - grep "scutil --set LocalHostName 'EVE'" ${config.out}/activate - grep "scutil --set HostName 'EVE'" ${config.out}/activate + grep "scutil --set LocalHostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate + grep "scutil --set HostName ${lib.escapeShellArg "EVE"}" ${config.out}/activate echo checking defaults write in ${config.out}/activate-user >&2 ''; } |
