From e9c4290176696b9cc79e9d08c4d3a29717a5bda2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 6 Jul 2024 23:47:32 +0200 Subject: [PATCH] Show a warning header --- lib/modules/partition/disks.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 62cf41f1..6473db0a 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -355,6 +355,7 @@ in lib.strings.concatLines ( (builtins.map (_: _.deviceScript) disks) ++ lib.optionals ((builtins.length disks) > 0) [ ". ${./../../../scripts/Common/Scripts/is-truthy.sh}" + ''echo "$(tput setaf 3)==== WARNING ====$(tput sgr0)"'' (''echo "Continuing this script will wipe the contents of '' + ( lib.strings.concatStringsSep ", " (builtins.map (_: "${_.deviceVariable}") (lib.lists.init disks)) ) + (if (builtins.length disks) > 1 then " and " else "") + (lib.lists.last disks).deviceVariable + ''"'')