From 7d664c0ac14df7ed4223d04fe0579662bd88c53a Mon Sep 17 00:00:00 2001 From: r-vdp Date: Mon, 4 Dec 2023 16:47:22 +0100 Subject: [PATCH] growpart: shellcheck fixes --- nixos/modules/system/boot/grow-partition.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/grow-partition.nix b/nixos/modules/system/boot/grow-partition.nix index 4f8a2273a7ac..1910ff52eac8 100644 --- a/nixos/modules/system/boot/grow-partition.nix +++ b/nixos/modules/system/boot/grow-partition.nix @@ -43,7 +43,7 @@ with lib; while [ "''${parentDevice%[0-9]}" != "''${parentDevice}" ]; do parentDevice="''${parentDevice%[0-9]}"; done - partNum="''${rootDevice#''${parentDevice}}" + partNum="''${rootDevice#"''${parentDevice}"}" if [ "''${parentDevice%[0-9]p}" != "''${parentDevice}" ] && [ -b "''${parentDevice%p}" ]; then parentDevice="''${parentDevice%p}" fi