From da018db1441dd743283b504579a3a076ff437931 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Sat, 21 Sep 2024 15:44:51 +0000 Subject: [PATCH] nixos/xen: fix spurious ShellCheck warning It thinks we want to expand the `*` regex expressions inside the `sed` commands. We do not. Signed-off-by: Fernando Rodrigues --- nixos/modules/virtualisation/xen-dom0.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/virtualisation/xen-dom0.nix b/nixos/modules/virtualisation/xen-dom0.nix index db0971065900..fa2cf2b2c6d5 100644 --- a/nixos/modules/virtualisation/xen-dom0.nix +++ b/nixos/modules/virtualisation/xen-dom0.nix @@ -32,6 +32,10 @@ let runtimeEnv = { efiMountPoint = config.boot.loader.efi.efiSysMountPoint; }; + + # We disable SC2016 because we don't want to expand the regexes in the sed commands. + excludeShellChecks = [ "SC2016" ]; + text = builtins.readFile ./xen-boot-builder.sh; }; in