diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 73f79bee4695..a9495961d698 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -444,7 +444,7 @@ let n=$out${destination} mkdir -p "$(dirname "$n")" echo -n "$text" > "$n" - test -n "$executable" && chmod +x "$n" + (test -n "$executable" && chmod +x "$n") || true ''; # Shorthands for `writeTextFile'.