mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
tests/networking-hostname: update for lib.escapeShellArg
change
This commit is contained in:
parent
5b2d8e9a47
commit
dea497f67a
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue