mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-09 18:41:06 +01:00
rclone: check existence of file rather than using cat (#7799)
It's not really clear why this was done in the first place, and furthermore it means that the secrets have been getting printed to stdout and appear on the system journal as a result.
This commit is contained in:
parent
a60021a8c9
commit
3c97248d6f
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ in
|
|||
injectSecret =
|
||||
remote:
|
||||
lib.mapAttrsToList (secret: secretFile: ''
|
||||
if ! cat "${secretFile}"; then
|
||||
if [[ ! -r "${secretFile}" ]]; then
|
||||
echo "Secret \"${secretFile}\" not found"
|
||||
cleanup
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue