Skip to content

Commit

Permalink
fix(home): shellcheck failure for fixed secretsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisfunke committed Sep 9, 2023
1 parent d8c973f commit fe4f564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/age-home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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}"
''}
'';
Expand Down

0 comments on commit fe4f564

Please sign in to comment.