From fe4f564f13c6151df7983fc3449061dc71c37d8d Mon Sep 17 00:00:00 2001 From: Nicolas Lenz Date: Sat, 9 Sep 2023 16:46:53 +0200 Subject: [PATCH] fix(home): shellcheck failure for fixed secretsDir --- modules/age-home.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/age-home.nix b/modules/age-home.nix index 9458da9..99ccccb 100644 --- a/modules/age-home.nix +++ b/modules/age-home.nix @@ -48,7 +48,7 @@ with lib; let test "''${#IDENTITIES[@]}" -eq 0 && echo "[agenix] WARNING: no readable identities found!" mkdir -p "$(dirname "$_truePath")" - # shellcheck disable=SC2193 + # shellcheck disable=SC2193,SC2050 [ "${secretType.path}" != "${cfg.secretsDir}/${secretType.name}" ] && mkdir -p "$(dirname "${secretType.path}")" ( umask u=r,g=,o= @@ -60,7 +60,7 @@ with lib; let mv -f "$TMP_FILE" "$_truePath" ${optionalString secretType.symlink '' - # shellcheck disable=SC2193 + # shellcheck disable=SC2193,SC2050 [ "${secretType.path}" != "${cfg.secretsDir}/${secretType.name}" ] && ln -sfn "${cfg.secretsDir}/${secretType.name}" "${secretType.path}" ''} '';