From d2fd0007c634e90ce09b46ac4afdbc7ff8f6c803 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 22 Feb 2025 12:23:29 +0100 Subject: fix(modules/legacy/conf/mail): Actually add the password, when triggering the git helper --- modules/home.legacy/conf/mail/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/home.legacy/conf') diff --git a/modules/home.legacy/conf/mail/default.nix b/modules/home.legacy/conf/mail/default.nix index 9c2554ee..758d2c80 100644 --- a/modules/home.legacy/conf/mail/default.nix +++ b/modules/home.legacy/conf/mail/default.nix @@ -20,8 +20,9 @@ [ "$1" = "get" ] || { exit 1 } - if cat | grep "username=${userName}" -q; then - ${passwordCommand} + output="$(cat)" + if echo "$output" | grep "username=${userName}" -q; then + printf "%s\npassword=%s\n\n" "$output" "$(${passwordCommand})" else # Not our business. exit 1 -- cgit 1.4.1