mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
home-environment: generate checked activation script
By using `writeShellScript` when writing the activation script we automatically get the right shebang and also get syntax validation. Issue #2015
This commit is contained in:
parent
b0688a631b
commit
794d08a1d8
1 changed files with 1 additions and 3 deletions
|
@ -541,9 +541,7 @@ in
|
|||
]
|
||||
+ optionalString (!cfg.emptyActivationPath) "\${PATH:+:}$PATH";
|
||||
|
||||
activationScript = pkgs.writeScript "activation-script" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
|
||||
activationScript = pkgs.writeShellScript "activation-script" ''
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
|
|
Loading…
Reference in a new issue