fix: added double quotes to substituteSecret in home-manager module to prevent SC2086 being raised

This commit is contained in:
ElliottSullingeFarrall 2024-11-19 12:27:31 +00:00
parent f2725cda13
commit 3478f03f17

View file

@ -67,7 +67,7 @@ with lib; let
substituteSecret = secretType:
builtins.concatStringsSep "\n" (builtins.map (file: ''
${pkgs.gnused}/bin/sed -i "s#@${secretType.name}@#$(cat ${secretType.path})#" ${file}
${pkgs.gnused}/bin/sed -i "s#@${secretType.name}@#$(cat "${secretType.path}")#" ${file}
'')
secretType.substitutions);