1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01: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"
'';
};