mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-24 18:48:29 +03:00
Disable shellcheck warning about impossible comparison
This shellcheck warning occurs when setting a path for a secret using the home-manager module. Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
92197270a1
commit
758cdc98f4
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,7 @@ with lib; let
|
|||
test "''${#IDENTITIES[@]}" -eq 0 && echo "[agenix] WARNING: no readable identities found!"
|
||||
|
||||
mkdir -p "$(dirname "$_truePath")"
|
||||
# shellcheck disable=SC2193
|
||||
[ "${secretType.path}" != "${cfg.secretsDir}/${secretType.name}" ] && mkdir -p "$(dirname "${secretType.path}")"
|
||||
(
|
||||
umask u=r,g=,o=
|
||||
|
@ -59,6 +60,7 @@ with lib; let
|
|||
mv -f "$TMP_FILE" "$_truePath"
|
||||
|
||||
${optionalString secretType.symlink ''
|
||||
# shellcheck disable=SC2193
|
||||
[ "${secretType.path}" != "${cfg.secretsDir}/${secretType.name}" ] && ln -sfn "${cfg.secretsDir}/${secretType.name}" "${secretType.path}"
|
||||
''}
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue