1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02:00

bash: use shellDryRun to check scripts

Allows using extglob in initialisation files.
See https://github.com/NixOS/nixpkgs/pull/151371
This commit is contained in:
Naïm Favier 2022-01-27 19:14:47 +01:00 committed by Robert Helgesson
parent acf824c9ed
commit 95d39e13a4
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -9,7 +9,7 @@ let
writeBashScript = name: text: pkgs.writeTextFile {
inherit name text;
checkPhase = ''
${pkgs.stdenv.shell} -n $out
${pkgs.stdenv.shellDryRun} "$target"
'';
};