From ed9a52b43ec964517646518c9a6d349685a0ab84 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 12 Sep 2024 18:39:50 +0200 Subject: [PATCH] Prevent use of glob --- lib/modules/partition/disks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 6b214740..066e5af0 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -142,7 +142,7 @@ ]; fallback = '' - if ! { ls "${diskVar}"?(p)${toString index} 2>&1; } > /dev/null + if ! { ls "${partVar}" 2>&1; } > /dev/null then ${create} fi