From 55e05291c2d7fec5cadab1022939c07635b5d7e7 Mon Sep 17 00:00:00 2001 From: oluceps Date: Sat, 7 Sep 2024 21:09:31 +0800 Subject: [PATCH] fix: SC2043 shell check error --- nix/lib.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nix/lib.nix b/nix/lib.nix index 9241c24..3302d7c 100644 --- a/nix/lib.nix +++ b/nix/lib.nix @@ -67,13 +67,14 @@ # For master identies with no explicit pubkey, try extracting a pubkey from the file first. # Collect final identity arguments for encryption in an array. masterIdentityArgs=() - # shellcheck disable=SC2041 - for file in ${ + masterIdentityArray=(${ concatStringsSep " " (map - (x: "${escapeShellArg x.identity}") + (x: ''"${escapeShellArg x.identity}"'') (filter (x: x.pubkey == null) mergedMasterIdentities)) - }; do + }) + # shellcheck disable=SC2041 + for file in "''${masterIdentityArray[@]}"; do # Keep track if a file was processed. file_processed=false