From 95d39e13a4a7a818c87f2701b59820d3ac0e674c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Thu, 27 Jan 2022 19:14:47 +0100 Subject: [PATCH] bash: use shellDryRun to check scripts Allows using extglob in initialisation files. See https://github.com/NixOS/nixpkgs/pull/151371 --- modules/programs/bash.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/bash.nix b/modules/programs/bash.nix index 86d223492..53477bf9a 100644 --- a/modules/programs/bash.nix +++ b/modules/programs/bash.nix @@ -9,7 +9,7 @@ let writeBashScript = name: text: pkgs.writeTextFile { inherit name text; checkPhase = '' - ${pkgs.stdenv.shell} -n $out + ${pkgs.stdenv.shellDryRun} "$target" ''; };